From ef7751f97197de3615d1143b96d328dc9e3ae01c Mon Sep 17 00:00:00 2001
From: Muhammad Adeel Nawaz <adeel.nawaz@coeus-solutions.de>
Date: Wed, 21 May 2014 16:18:45 +0500
Subject: [PATCH] Metatag: PHP syntax bugs fixed regarding
 metatag_metatags_cache_clear()

---
 sites/all/modules/metatag/metatag.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sites/all/modules/metatag/metatag.module b/sites/all/modules/metatag/metatag.module
index f3cdeaf..0b39a91 100644
--- a/sites/all/modules/metatag/metatag.module
+++ b/sites/all/modules/metatag/metatag.module
@@ -584,11 +584,11 @@ function metatag_metatags_delete_multiple($entity_type, array $entity_ids, array
  *   The entity type to clear.
  */
 function metatag_metatags_cache_clear($entity_type, $entity_ids = NULL) {
-  if (empty($entity_id)) {
+  if (empty($entity_ids)) {
     cache_clear_all("output:$entity_type", 'cache_metatag', TRUE);
   }
   else {
-    if (!array($entity_ids)) {
+    if (!is_array($entity_ids)) {
       $entity_ids = array($entity_ids);
     }
     foreach ($entity_ids as $entity_id) {
-- 
1.8.0

