Fix modal, database and Module/PHP

This commit is contained in:
Bizarrus committed 2023-11-05 06:13:21 +01:00
1 parent a30b6ebd0f
commit b40bec7ca0
7 files changed
+15 -27

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@
}
public function tableExists(string $table) : bool {
$row = $this->single('SELECT count(*) AS `result` FROM information_schema.TABLES WHERE (TABLE_SCHEMA=\'' . DATABASE_NAME . '\') AND (TABLE_NAME=\'' . $table . '\')');
$result = $this->single('SELECT count(*) AS `result` FROM information_schema.TABLES WHERE (TABLE_SCHEMA=\'' . DATABASE_NAME . '\') AND (TABLE_NAME=\'' . $table . '\')');
if(isset($result) && $result !== null) {
return $result->result == 1;