Skip to content

Commit

Permalink
feature:2250
Browse files Browse the repository at this point in the history
Remove useless query for delete.

git-svn-id: http://piwigo.org/svn/trunk@10129 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Apr 7, 2011
1 parent 49dd77f commit a107179
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions admin/include/plugins.class.php
Expand Up @@ -186,9 +186,6 @@ function perform_action($action, $plugin_id)
array_push($errors, 'CANNOT DELETE - NO SUCH PLUGIN');
break;
}
$query = '
DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
pwg_query($query);
if (!$this->deltree(PHPWG_PLUGINS_PATH . $plugin_id))
{
$this->send_to_trash(PHPWG_PLUGINS_PATH . $plugin_id);
Expand Down

0 comments on commit a107179

Please sign in to comment.