2011-08-05 Javier Lanz <javier.lanz@artica.es>

* godmode/servers/plugin.php: Fixed blank names creating & updating
        pluings

        Fixes: #3371409



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4675 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-08-05 08:53:42 +00:00
parent c97b78550c
commit 1c1e5b1c0e
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2011-08-05 Javier Lanz <javier.lanz@artica.es>
* godmode/servers/plugin.php: Fixed blank names creating & updating
pluings
Fixes: #3371409
2011-08-05 Javier Lanz <javier.lanz@artica.es>
* godmode/servers/recon_script.php: Fixed blank names creating and

View File

@ -163,7 +163,9 @@ else {
'plugin_type' => $plugin_plugin_type,
'pass_opt' => $plugin_pass_opt);
$result =db_process_sql_update('tplugin', $values, array('id' => $plugin_id));
$result = false;
if ($values['name'] != '' && $values['execute'] != '')
$result = db_process_sql_update('tplugin', $values, array('id' => $plugin_id));
if (! $result) {
echo "<h3 class='error'>".__('Problem updating plugin')."</h3>";
@ -196,11 +198,12 @@ else {
'pass_opt' => $plugin_pass_opt,
'plugin_type' => $plugin_plugin_type);
$result = db_process_sql_insert('tplugin', $values);
$result = false;
if ($values['name'] != '' && $values['execute'] != '')
$result = db_process_sql_insert('tplugin', $values);
if (! $result) {
echo "<h3 class='error'>".__('Problem creating plugin')."</h3>";
echo $sql_insert;
}
else {
echo "<h3 class='suc'>".__('Plugin created successfully')."</h3>";