Skip to content

Commit 8a2cc64

Browse files
committed
Dev: Don't run db query for options if table isn't defined
1 parent d9d79a7 commit 8a2cc64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Editor/Options.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ public function exec($db, $refresh, $search = null, $find = null)
441441

442442
public function execDb($db, $find)
443443
{
444+
if (!$this->_table) {
445+
return [];
446+
}
447+
444448
// Create a list of the fields that we need to get from the db
445449
$fields = [];
446450
$fields[] = $this->_value;

0 commit comments

Comments
 (0)