aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/plugins.class.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-10-10 13:13:12 +0000
committerpatdenice <patdenice@piwigo.org>2008-10-10 13:13:12 +0000
commitadce496a004fd4c8fbc1a966dea16ee2dc08caf0 (patch)
treeb065dc1b6fd5067e5b2970fd15fdd0acd872cbda /admin/include/plugins.class.php
parent0e5f5a74b31c0df471304ccfdb57cba7a26b9925 (diff)
- 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. git-svn-id: http://piwigo.org/svn/trunk@2701 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/plugins.class.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php
index 2d2bd3afe..ff478be83 100644
--- a/admin/include/plugins.class.php
+++ b/admin/include/plugins.class.php
@@ -25,7 +25,7 @@ class plugins
{
var $fs_plugins = array();
var $db_plugins_by_id = array();
- var $server_plugins;
+ var $server_plugins = array();
/**
* Initialize $fs_plugins and $db_plugins_by_id
@@ -302,14 +302,19 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"';
// Retrieve PEM plugins infos
$url = PEM_URL . '/api/get_revision_list.php?category_id=12&format=php&last_revision_only=true';
$url .= '&version=' . implode(',', $versions_to_check);
+
if (!empty($plugins_to_check))
{
$url .= $new ? '&extension_exclude=' : '&extension_include=';
$url .= implode(',', $plugins_to_check);
}
- if ($source = @file_get_contents($url)
- and $pem_plugins = @unserialize($source))
+ if ($source = @file_get_contents($url))
{
+ $pem_plugins = @unserialize($source);
+ if (!is_array($pem_plugins))
+ {
+ return false;
+ }
foreach ($pem_plugins as $plugin)
{
$this->server_plugins[$plugin['extension_id']] = $plugin;