Change twitter message truncation to not assume 137 characters will
always be a word
Merge pull request #1 from tomvachon/master

Fix logic around message truncation
Fix "Object of class SQLite3Result could not be converted to int" within includes/database.class.php
Fix "Undefined index: smarty_debug" notices generated by includes/template.inc.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
Merge pull request #3 from goldie80/smarty_debug_error_fix

Fix "Undefined index: smarty_debug" notices generated by includes/template.inc.php