Fix "Object of class SQLite3Result could not be converted to int" within includes/database.class.php
Merge pull request #2 from goldie80/sqlite3_row_count_fix

Fix "Object of class SQLite3Result could not be converted to int" within includes/database.class.php