]> _ Git - cubeextranet.git/commitdiff
wait #5647 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 14 Dec 2022 08:57:45 +0000 (08:57 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 14 Dec 2022 08:57:45 +0000 (08:57 +0000)
inc/ws/Util/class.ws.links.php

index 647b1f69c31ba322279aeea030bfd9629c9441fc..b951a2d9cea4109f4c35652faee4376719141dd6 100644 (file)
@@ -326,7 +326,7 @@ class wsLinks
         $crypted = [13, 14, 35];
 
         if (!in_array($link->type, $crypted)) {
-            return $link;
+            return CubeIT_Util_Array::asArray($link);
         }
 
         $attrs = ['image_rollover'];
@@ -340,7 +340,7 @@ class wsLinks
             }
             $link->$attr = '///' . CubeIT_Crypt::safeEncrypt($link->uid . '|||' . $link->$attr, self::_getLinkKey());
         }
-        return $link;
+        return CubeIT_Util_Array::asArray($link);
     }
 
     public static function decryptLink($link)