1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

sitelinks handler - php warnings

This commit is contained in:
secretr
2010-03-16 15:11:07 +00:00
parent a1633e37c6
commit dd0bc4c475

View File

@@ -8,10 +8,8 @@
* *
* *
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $ * $URL$
* $Revision$ * $Id$
* $Date$
* $Author$
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -128,6 +126,12 @@ class sitelinks
$text = "\n\n\n<!-- Sitelinks ($cat) -->\n\n\n".$style['prelink']; $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) { if ($style['linkdisplay'] != 3) {
foreach ($this->eLinkList['head_menu'] as $key => $link){ foreach ($this->eLinkList['head_menu'] as $key => $link){
$main_linkid = "sub_".$link['link_id']; $main_linkid = "sub_".$link['link_id'];