Skip to content

Commit

Permalink
Fix Block Editor crash on save
Browse files Browse the repository at this point in the history
Fix for issue #714
  • Loading branch information
eSilverStrike committed Dec 20, 2016
1 parent 5cf75ea commit a339619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/admin/block.php
Expand Up @@ -801,7 +801,7 @@ function saveblock($bid, $name, $title, $help, $type, $blockOrder, $device, $con
}

if ($bid > 0) {
DB_save($_TABLES['blocks'], 'bid,name,title,help,type,blockorder,device,content,rdfurl,rdfupdated,rdflimit,phpblockfn,onleft,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon,is_enabled,allow_autotags,cache_time,rdf_last_modified,rdf_etag', "$bid,'$name','$title','$help','$type','$blockOrder','$device','$content','$rdfUrl','$rdfUpdated','$rdfLimit','$phpBlockFn',$onLeft,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$is_enabled,$allow_autotags,$cache_time,NULL,NULL");
DB_save($_TABLES['blocks'], 'bid,name,title,help,type,blockorder,device,content,rdfurl,rdfupdated,rdflimit,phpblockfn,onleft,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon,is_enabled,allow_autotags,cache_time,rdf_last_modified,rdf_etag', "$bid,'$name','$title','$help','$type','$blockOrder','$device','$content','$rdfUrl',$rdfUpdated,'$rdfLimit','$phpBlockFn',$onLeft,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$is_enabled,$allow_autotags,$cache_time,NULL,NULL");
} else {
$sql = array();
$sql['mysql'] = "INSERT INTO {$_TABLES['blocks']} "
Expand Down

0 comments on commit a339619

Please sign in to comment.