From 9ad26f6ac141d0b097921e00994ca1af104dc4c9 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sat, 27 Sep 2008 12:47:47 +0000 Subject: [PATCH] fixing datatype warning in arary_search due to wrong return value in cache_get --- fp-plugins/prettyurls/plugin.prettyurls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-plugins/prettyurls/plugin.prettyurls.php b/fp-plugins/prettyurls/plugin.prettyurls.php index 9d88c0b..0683d65 100644 --- a/fp-plugins/prettyurls/plugin.prettyurls.php +++ b/fp-plugins/prettyurls/plugin.prettyurls.php @@ -400,7 +400,7 @@ class Plugin_PrettyURLs { return $this->index[$y][$m]; if (is_null($h)) - return ($this->index[$y][$m][$d]); + return isset($this->index[$y][$m][$d])? $this->index[$y][$m][$d] : false; if (isset($this->index[$y][$m][$d])) return isset($this->index[$y][$m][$d][$h]);