Changeset 2701 for trunk/admin/include


Ignore:
Timestamp:
Oct 10, 2008, 3:13:12 PM (16 years ago)
Author:
patdenice
Message:
  • If there is not new plugins to check, we don't get any more error message.
  • small corrections in configuration.html and cat_modify.tpl.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/plugins.class.php

    r2647 r2701  
    2626  var $fs_plugins = array();
    2727  var $db_plugins_by_id = array();
    28   var $server_plugins;
     28  var $server_plugins = array();
    2929
    3030  /**
     
    303303    $url = PEM_URL . '/api/get_revision_list.php?category_id=12&format=php&last_revision_only=true';
    304304    $url .= '&version=' . implode(',', $versions_to_check);
     305
    305306    if (!empty($plugins_to_check))
    306307    {
     
    308309      $url .= implode(',', $plugins_to_check);
    309310    }
    310     if ($source = @file_get_contents($url)
    311       and $pem_plugins = @unserialize($source))
    312     {
     311    if ($source = @file_get_contents($url))
     312    {
     313      $pem_plugins = @unserialize($source);
     314      if (!is_array($pem_plugins))
     315      {
     316        return false;
     317      }
    313318      foreach ($pem_plugins as $plugin)
    314319      {
Note: See TracChangeset for help on using the changeset viewer.