Skip to content

Commit a541c7e

Browse files
committed
Missing table error fix
1 parent a08e37b commit a541c7e

File tree

3 files changed

+308
-284
lines changed

3 files changed

+308
-284
lines changed

lib/module.class.php

+10
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,11 @@ public function codeParams($in)
830830

831831
public function sendnotification($str, $type = 'default')
832832
{
833+
834+
if (!SQLTableExists('plugins_noty')) {
835+
return json_encode(array('status'=>false));
836+
}
837+
833838
if($type != 'info' && $type != 'danger' && $type != 'warning' && $type != 'success' && $type != 'default') {
834839
$type = 'default';
835840
}
@@ -860,6 +865,11 @@ public function sendnotification($str, $type = 'default')
860865

861866
public function readnotification($noty_id)
862867
{
868+
869+
if (!SQLTableExists('plugins_noty')) {
870+
return json_encode(array('status'=>false));
871+
}
872+
863873
$rec["ID"] = $noty_id;
864874
$rec["READ"] = 1;
865875

0 commit comments

Comments
 (0)