mirror of
https://github.com/fruithost/Panel.git
synced 2026-12-03 22:02:11 +09:00
Fix modal, database and Module/PHP
This commit is contained in:
7 files changed
+15
-27
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user