From 3d49441f503b1a25f68f8d56fdfb5582bf96bf8b Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 14 Apr 2011 01:26:40 +0000 Subject: handles empty array in get_metastring_id() (hellekin) git-svn-id: http://code.elgg.org/elgg/trunk@8994 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metastrings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php index 47712d3fa..913d33a7d 100644 --- a/engine/lib/metastrings.php +++ b/engine/lib/metastrings.php @@ -75,7 +75,7 @@ function get_metastring_id($string, $case_sensitive = TRUE) { $ids[] = $metaString->id; } return $ids; - } else if ($metaStrings) { + } else if (isset($metaStrings[0])) { $row = $metaStrings[0]; } } -- cgit v1.2.3