From: Dylan Lloyd Date: Wed, 27 Jun 2012 06:35:29 +0000 (-0400) Subject: pass-by-reference defined in func. def. not call X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=c8d6aa1779e2fc2c21fb2b9d856dbee810ac2fe1;p=dylansserver.git pass-by-reference defined in func. def. not call --- diff --git a/model/model.php b/model/model.php index f9bb164..9088831 100644 --- a/model/model.php +++ b/model/model.php @@ -31,7 +31,7 @@ class model { $args = func_get_args(); $statement = $this->db->prepare($args[0]); $args = array_slice($args, 1); - call_user_func_array(array($statement, 'bind_param'), &$args); + call_user_func_array(array($statement, 'bind_param'), $args); $statement->execute(); $return = array(); $statement->store_result();