Skip to content

Commit

Permalink
This was breaking in PHP 5.4.4 and 5.3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
CubedEye committed Oct 22, 2012
1 parent 3f62e77 commit 8f2be91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/base/db/orm/insert/proxy.php
Expand Up @@ -146,7 +146,7 @@ public function __toString() {
* @return integer the last insert id
*/
public function execute() {
$auto_increment = $this->model::is_auto_incremented();
$auto_increment = call_user_func($this->model, 'is_auto_incremented');
$connection = DB_Connection_Pool::instance()->get_connection($this->source);
$connection->execute($this->statement());
$primary_key = ($auto_increment) ? $connection->get_last_insert_id() : 0;
Expand Down

0 comments on commit 8f2be91

Please sign in to comment.