diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-14 01:26:40 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-14 01:26:40 +0000 |
commit | 3d49441f503b1a25f68f8d56fdfb5582bf96bf8b (patch) | |
tree | 3931f8a9f0521927d1adecab9c23173fae91965c /engine/lib/metastrings.php | |
parent | e809367625ed4f9d05b5711791392c60d8fac69e (diff) | |
download | elgg-3d49441f503b1a25f68f8d56fdfb5582bf96bf8b.tar.gz elgg-3d49441f503b1a25f68f8d56fdfb5582bf96bf8b.tar.bz2 |
handles empty array in get_metastring_id() (hellekin)
git-svn-id: http://code.elgg.org/elgg/trunk@8994 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metastrings.php')
-rw-r--r-- | engine/lib/metastrings.php | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } } |