mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +02:00
sitelinks handler - php warnings
This commit is contained in:
@@ -8,10 +8,8 @@
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
* $URL$
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
@@ -128,6 +126,12 @@ class sitelinks
|
||||
|
||||
$text = "\n\n\n<!-- Sitelinks ($cat) -->\n\n\n".$style['prelink'];
|
||||
|
||||
// php warnings
|
||||
if(!vartrue($this->eLinkList['head_menu']))
|
||||
{
|
||||
$this->eLinkList['head_menu'] = array();
|
||||
}
|
||||
|
||||
if ($style['linkdisplay'] != 3) {
|
||||
foreach ($this->eLinkList['head_menu'] as $key => $link){
|
||||
$main_linkid = "sub_".$link['link_id'];
|
||||
|
Reference in New Issue
Block a user