diff --git a/classes/database.php b/classes/database.php index 1e4d9a7..4206af5 100644 --- a/classes/database.php +++ b/classes/database.php @@ -349,7 +349,7 @@ class Database { } $tableName = Config::getValue( 'database/dbPrefix' ) . $tableName; $sql = "{$action} FROM `{$tableName}` WHERE "; - $validOperators = ['=', '!=', '>', '<', '>=', '<=', 'LIKE', 'IS']; + $validOperators = ['=', '!=', '>', '<', '>=', '<=', 'LIKE', 'IS', 'IN']; $validDelimiters = ['AND', 'OR']; $values = []; while ( $whereCount > 2 ) { diff --git a/classes/model.php b/classes/model.php index 4d5291e..04238f5 100644 --- a/classes/model.php +++ b/classes/model.php @@ -66,14 +66,11 @@ class Model { $ids[] = $id; } } - return $ids; + return [ $this->tableName => $ids ]; } public function uninstallResources() { // this one needs some work - // should probably save the created resource ID's or something and remove them. - // presumably this isn't a big issue because i would imagine the table is removed - // there may be future instances where you can create resources for other tables return true; }