issue 2931 if menu start with 'http://', change type to shortcut

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12728 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2013-02-08 01:28:26 +00:00
parent c1f6076769
commit 3a11f85ee3

View file

@ -88,7 +88,7 @@ class menu extends ModuleObject
}
// if url is empty, change type to shortcurt
if($value2->is_shortcut == 'N' && !$value2->url)
if($value2->is_shortcut == 'N' && (!$value2->url || preg_match('/^http/i',$value2->url)))
{
$value2->is_shortcut = 'Y';
$output3 = executeQuery('menu.updateMenuItem', $value2);