From f97af6e6b6e0ad7c1f5a051f3f6031d66bc53f13 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 7 Dec 2012 15:42:54 -0800 Subject: [PATCH] More notice removal --- e107_handlers/cache_handler.php | 2 +- e107_handlers/sitelinks_class.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/e107_handlers/cache_handler.php b/e107_handlers/cache_handler.php index 3486c6405..223a089ea 100644 --- a/e107_handlers/cache_handler.php +++ b/e107_handlers/cache_handler.php @@ -166,7 +166,7 @@ class ecache { if(($ForceCache != false ) || ($syscache == false && $this->UserCacheActive) || ($syscache == true && $this->SystemCacheActive) && !e107::getParser()->checkHighlighting()) { $cache_file = (isset($this) && $this instanceof ecache ? $this->cache_fname($CacheTag, $syscache) : ecache::cache_fname($CacheTag, $syscache)); - file_put_contents($cache_file, ($bRaw? $Data : self::CACHE_PREFIX.$Data) ); + @file_put_contents($cache_file, ($bRaw? $Data : self::CACHE_PREFIX.$Data) ); @chmod($cache_file, 0755); //Cache should not be world-writeable @touch($cache_file); } diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index 00803081e..7f12dabbe 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -765,6 +765,10 @@ class e_navigation /* echo "

".$name." ($plug)

"; print_a($plugs->plug_vars);*/ + if(!varset($plugs->plug_vars['adminLinks']['link'])) + { + continue; + } foreach($plugs->plug_vars['adminLinks']['link'] as $tag) {