Skip to content

Commit

Permalink
Merge pull request #16 from mecharius/master
Browse files Browse the repository at this point in the history
Crash where "pdodriver" not defined in config
  • Loading branch information
toopay committed Apr 2, 2012
2 parents 0af192a + e1879bd commit 7058a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/gas/classes/core.php
Expand Up @@ -2472,7 +2472,7 @@ public static function __callStatic($name, $args)
return static::$$dbal_component;

}
elseif ($name == 'insert_id' && static::$db->pdodriver == 'pgsql')
elseif ($name == 'insert_id' && isset(static::$db->pdodriver) && static::$db->pdodriver == 'pgsql')
{
return static::$db->conn_id->lastInsertId();
}
Expand Down

0 comments on commit 7058a25

Please sign in to comment.