portsoc / linbeta

7 stars 3 forks source link

Incorrect second argument being passed to DB::query method prior to DB creation. #37

Closed tpunt closed 10 years ago

tpunt commented 10 years ago

The DB class (in db.php) incorrectly passes two extra arguments to DB::query when creating the non-existent database (line 75). The following warning is emitted in api/1/links/index.php:

Warning: PDOStatement::execute() expects parameter 1 to be array, string given in /Users/tpunt/localhost/general/linbeta/inc/db.php on line 102