diff --git a/Superfecta.class.php b/Superfecta.class.php index c66c01a7..4105ca8e 100644 --- a/Superfecta.class.php +++ b/Superfecta.class.php @@ -428,7 +428,7 @@ public function ajaxHandler() { } break; case "update_sources": - $sources = implode(",", $_REQUEST['data']); + $sources = isset($_REQUEST['data'])?implode(",", $_REQUEST['data']):''; $sql = "REPLACE INTO superfectaconfig (value, source, field) VALUES(?, ?, 'sources')"; $sth = $this->db->prepare($sql); $sth->execute(array($sources, 'base_'.$_REQUEST['scheme']));