aboutsummaryrefslogtreecommitdiffstats
path: root/admin
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
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 'admin')
-rw-r--r--admin/include/plugins.class.php11
-rw-r--r--admin/template/goto/cat_modify.tpl2
2 files changed, 9 insertions, 4 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;
diff --git a/admin/template/goto/cat_modify.tpl b/admin/template/goto/cat_modify.tpl
index d27311c7b..4648b92d8 100644
--- a/admin/template/goto/cat_modify.tpl
+++ b/admin/template/goto/cat_modify.tpl
@@ -108,7 +108,7 @@
{html_options options=$image_order_field_options selected=$order.FIELD }
</select>
<select name="order_direction_{$order.ID}">
- {html_options options=$image_order_direction_options selected=$order.DIRECTION }}
+ {html_options options=$image_order_direction_options selected=$order.DIRECTION }
</select><br/>
{/foreach}