aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-11-08 21:26:30 +0000
committerplegall <plg@piwigo.org>2005-11-08 21:26:30 +0000
commit648b69b56c7c202645a5fd6baadb81a72bfcc6a0 (patch)
tree96d72185d2d827691c45003c15a28306acc941e4 /admin
parent5282ee6fb1e6a6f9db6b68b66494d1a225c207ab (diff)
This commit was manufactured by cvs2svn to create tag1.5.0
'release-1_5_0'. git-svn-id: http://piwigo.org/svn/tags/release-1_5_0@930 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/remote_site.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/admin/remote_site.php b/admin/remote_site.php
index 5044bd45a..fb778084f 100644
--- a/admin/remote_site.php
+++ b/admin/remote_site.php
@@ -714,6 +714,12 @@ SELECT id, galleries_url
WHERE id != 1
;';
$result = pwg_query($query);
+
+if (mysql_num_rows($result) > 0)
+{
+ $template->assign_block_vars('sites', array());
+}
+
while ($row = mysql_fetch_array($result))
{
$base_url = PHPWG_ROOT_PATH.'admin.php';
@@ -722,7 +728,7 @@ while ($row = mysql_fetch_array($result))
$base_url.= '&amp;action=';
$template->assign_block_vars(
- 'site',
+ 'sites.site',
array(
'NAME' => $row['galleries_url'],
'U_GENERATE' => add_session_id($base_url.'generate'),