From: <al...@us...> - 2008-09-16 15:57:13
|
Revision: 677 http://sciret.svn.sourceforge.net/sciret/?rev=677&view=rev Author: alpeb Date: 2008-09-16 22:57:12 +0000 (Tue, 16 Sep 2008) Log Message: ----------- little fix Modified Paths: -------------- trunk/models/TodoGateway.php Modified: trunk/models/TodoGateway.php =================================================================== --- trunk/models/TodoGateway.php 2008-09-16 22:56:26 UTC (rev 676) +++ trunk/models/TodoGateway.php 2008-09-16 22:57:12 UTC (rev 677) @@ -52,8 +52,8 @@ function deleteTodo($todoId, $userId) { $query = 'SELECT todo_id FROM todos WHERE todo_id = ? AND user_id = ?'; - $result = DB::getInstance()->query($query, $todoId, $userId); - if (!$result->getNumRows()) { + $result = DB::getInstance()->query($query, array($todoId, $userId)); + if (!$result->rowCount()) { return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |