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 | admin/helpers/src/taxonomy/summary.php +5 -1 1.8.8 → 1.8.16 View file →
@@ -200,8 +200,12 @@
200 200 if (isset($tax_map[$tax_id])) {
201 201 return $tax_map[$tax_id];
202 202 }
203 203
204 + if (empty($tax_id)) {
205 + return [];
206 + }
207 +
204 208 $dbo = JFactory::getDbo();
205 209
206 210 $q = "SELECT * FROM `#__vikbooking_iva` WHERE `id`=" . $tax_id;
207 211 $dbo->setQuery($q, 0, 1);
@@ -206,9 +210,9 @@
206 210 $q = "SELECT * FROM `#__vikbooking_iva` WHERE `id`=" . $tax_id;
207 211 $dbo->setQuery($q, 0, 1);
208 212
209 213 // cache value and return it
210 - $tax_map[$tax_id] = $dbo->loadAssoc();
214 + $tax_map[$tax_id] = (array) $dbo->loadAssoc();
211 215
212 216 return $tax_map[$tax_id];
213 217 }
214 218