aboutsummaryrefslogtreecommitdiffstats
path: root/admin/site_manager.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-12-13 01:38:47 +0000
committerrvelices <rv-github@modusoptimus.com>2006-12-13 01:38:47 +0000
commit51e56e9c1f4952a7d8cb7533b62c2829c15df01e (patch)
treef417cd4787b5cf04e90ec8b45cfe9da3122021e2 /admin/site_manager.php
parent0ad7985abcd137bc5d404161dabb97f40e145a77 (diff)
bug 550: check that remote site url is not empty
git-svn-id: http://piwigo.org/svn/trunk@1654 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/site_manager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/site_manager.php b/admin/site_manager.php
index c13b9857c..aa0ad5f31 100644
--- a/admin/site_manager.php
+++ b/admin/site_manager.php
@@ -82,7 +82,8 @@ $template->set_filenames(array('site_manager'=>'admin/site_manager.tpl'));
// +-----------------------------------------------------------------------+
// | new site creation form |
// +-----------------------------------------------------------------------+
-if (isset($_POST['submit']))
+if (isset($_POST['submit']) and !empty($_POST['galleries_url'])
+ and !is_adviser() )
{
$is_remote = url_is_remote( $_POST['galleries_url'] );
$url = preg_replace('/[\/]*$/', '', $_POST['galleries_url']);