]> CyberLeo.Net >> Repos - Github/YOURLS.git/commit
Connect to DB before getting attribute
authorozh <ozh@ozh.org>
Sun, 3 Sep 2017 19:53:03 +0000 (21:53 +0200)
committerozh <ozh@ozh.org>
Sun, 3 Sep 2017 19:53:03 +0000 (21:53 +0200)
commitc0c91a02d2cdcb2031a745c669e36ae98b2d79d9
tree88d5ea53ac6766c3648d5447b384669781970f3c
parent8534e7d2500ae637092dcb7cde604b215387d57d
Connect to DB before getting attribute

Attempt to fix the "PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute'" thrown on PHP 5.4. It could be that issuing PDO::getAttribute() before being connected to the DB prevents exception from being caught
includes/YOURLS/Database/YDB.php
includes/class-mysql.php