feature:2250

Remove useless query for delete.

git-svn-id: http://piwigo.org/svn/trunk@10129 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice 2011-04-07 09:42:13 +00:00
parent 49dd77f05b
commit a1071794d9

View file

@ -186,9 +186,6 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
array_push($errors, 'CANNOT DELETE - NO SUCH PLUGIN'); array_push($errors, 'CANNOT DELETE - NO SUCH PLUGIN');
break; break;
} }
$query = '
DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
pwg_query($query);
if (!$this->deltree(PHPWG_PLUGINS_PATH . $plugin_id)) if (!$this->deltree(PHPWG_PLUGINS_PATH . $plugin_id))
{ {
$this->send_to_trash(PHPWG_PLUGINS_PATH . $plugin_id); $this->send_to_trash(PHPWG_PLUGINS_PATH . $plugin_id);