✅ Add tests for non existent tables.
Prevent PHP warnings "Undefined variable" in dba_pdo::q();
This commit is contained in:
@@ -66,8 +66,9 @@ class dba_pdo extends dba_driver {
|
||||
}
|
||||
}
|
||||
|
||||
$result = null;
|
||||
$this->error = '';
|
||||
$select = ((stripos($sql,'select') === 0) ? true : false);
|
||||
$select = ((stripos($sql, 'select') === 0) ? true : false);
|
||||
|
||||
try {
|
||||
$result = $this->db->query($sql, PDO::FETCH_ASSOC);
|
||||
|
Reference in New Issue
Block a user