owncloud/core — pull request #153 by butonic (2012-10-30 10:12:38+00:00)
Title: check for database error in userExists

Not checking for errors will result in a php error:

Call to undefined method MDB2_Error::numRows() in /home/xxx/www/owncloud/lib/user/database.php on line 176

The attached patch logs the error and correctly returns false in that case.