diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-05 17:22:24 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-05 17:22:24 -0400 |
commit | e5f291b09c4403bf5ffdd131c662f35a92ec363e (patch) | |
tree | 7e170eecc57df46d239f9a0b908a12b7163b34f1 /lib/itemmapper.php | |
parent | 96041641949c55abf2b432bc08ea493b40dec873 (diff) |
button to remove folder
Diffstat (limited to 'lib/itemmapper.php')
-rw-r--r-- | lib/itemmapper.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/itemmapper.php b/lib/itemmapper.php index b08dcd86b..db2dd0056 100644 --- a/lib/itemmapper.php +++ b/lib/itemmapper.php @@ -139,12 +139,12 @@ class OC_News_ItemMapper { * @return */ public function deleteAll($feedid){ - $stmt = OCP\DB::prepare(" - DELETE FROM " . self::tableName . - "WHERE feedid = $id - "); + if ($feedid == null) { + return false; + } + $stmt = OCP\DB::prepare('DELETE FROM ' . self::tableName .' WHERE feed_id = ?'); - $result = $stmt->execute(); + $result = $stmt->execute(array($feedid)); return $result; } |