Commit cc58c4da authored by Alex Ne's avatar Alex Ne

Вот как-то нельзя отправлять параметр с другим типом!

parent 74a2bc49
<?php <?php
/* class XDatabaseParamError extends \X\ETrace\System {}
НЕ ТРОЖ!!! :)
*/
class X_DB_MySQLi { class X_DB_MySQLi {
/** /**
* @var array * @var array
...@@ -335,6 +334,10 @@ class X_DB_MySQLi { ...@@ -335,6 +334,10 @@ class X_DB_MySQLi {
* @return mixed * @return mixed
*/ */
public function delete_in($table, $column, $data) { public function delete_in($table, $column, $data) {
if ( ! is_array($data)) {
throw new XDatabaseParamError("Param 'data' must have type array in function 'db->delete_in( string table, sting column, array data)'", 0);
}
if ( ! (count($data) > 0)) { if ( ! (count($data) > 0)) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment