Skip to content

Commit

Permalink
Update statement now works with as prepared statement
Browse files Browse the repository at this point in the history
  • Loading branch information
legomolina committed Oct 30, 2016
1 parent 9fb7486 commit 3aa5520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimpleORM/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected static function getTableId()
return 'id';
}

private static function getConnection()
protected static function getConnection()
{
if(self::$connection == null) {
$connection = new \mysqli(self::$DB_HOST, self::$DB_USER, self::$DB_PASS, self::$DB_NAME);
Expand Down

0 comments on commit 3aa5520

Please sign in to comment.