From 51e56e9c1f4952a7d8cb7533b62c2829c15df01e Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 13 Dec 2006 01:38:47 +0000 Subject: bug 550: check that remote site url is not empty git-svn-id: http://piwigo.org/svn/trunk@1654 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/site_manager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'admin/site_manager.php') 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']); -- cgit v1.2.3