Skip to content

Commit

Permalink
FREEPBX-11726 Fix whoops error when no sources are selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinstrom authored and tm1000 committed Mar 1, 2016
1 parent 3ef342d commit a91c0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Superfecta.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
Expand Down

0 comments on commit a91c0da

Please sign in to comment.