PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | libraries/adapter/user/user.php +5 -3 1.6.5 → 1.8.16 View file →
@@ -85,15 +85,17 @@
85 85 // do not cache
86 86 return $user;
87 87 }
88 88
89 + $key = (int) $id;
90 +
89 91 // cache user object
90 - if (!isset(static::$instances[$id]))
92 + if (!isset(static::$instances[$key]))
91 93 {
92 - static::$instances[$id] = $user;
94 + static::$instances[$key] = $user;
93 95 }
94 96
95 - return static::$instances[$id];
97 + return static::$instances[$key];
96 98 }
97 99
98 100 /**
99 101 * Magic method to access internal properties.