plugins/admin/PluginManager.php
changeset 791 e6094f56f941
parent 699 c7d737202d59
child 801 eb8b23f11744
equal deleted inserted replaced
790:e210589fb79d 791:e6094f56f941
   273                   if ( !$return['success'] )
   273                   if ( !$return['success'] )
   274                     break 2;
   274                     break 2;
   275                   if ( $row['config_value'] == '0' )
   275                   if ( $row['config_value'] == '0' )
   276                   {
   276                   {
   277                     $fn_db = $db->escape($plugin_filename);
   277                     $fn_db = $db->escape($plugin_filename);
   278                     $q = $db->sql_query('UPDATE ' . table_prefix . "plugins SET plugin_flags = plugin_flags | " . PLUGIN_DISABLED . " WHERE plugin_filename = '$fn_db';");
   278                     $e = $db->sql_query('UPDATE ' . table_prefix . "plugins SET plugin_flags = plugin_flags | " . PLUGIN_DISABLED . " WHERE plugin_filename = '$fn_db';");
   279                     if ( !$q )
   279                     if ( !$e )
   280                       $db->die_json();
   280                       $db->die_json();
   281                   }
   281                   }
   282                 }
   282                 }
   283               }
   283               }
   284               $db->free_result($q);
   284               $db->free_result($q);