mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
PHP/Core
* enforced v7.1 compliance, preparations for v7.2 * removed deprecated usage of each() * prefer array deconstruction via [] instead of calling list() * try to catch failed session_start() * prefer ... - Token instead of calling func_get_args() func_num_args() * enforce return types in AjaxHandler * revision push
This commit is contained in:
@@ -159,9 +159,8 @@ class DbSimple_Connect
|
||||
*
|
||||
* @param string $query запрос
|
||||
*/
|
||||
public function addInit($query)
|
||||
public function addInit(...$args)
|
||||
{
|
||||
$args = func_get_args();
|
||||
if ($this->DbSimple !== null)
|
||||
return call_user_func_array(array(&$this->DbSimple, 'query'), $args);
|
||||
$this->init[] = $args;
|
||||
|
||||
Reference in New Issue
Block a user