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/database/table.php +12 -0 1.6.9 → 1.8.16 View file →
@@ -480,8 +480,20 @@
480 480 {
481 481 $result = $dbo->insertObject($this->_table, $this, $this->_tableKeys[0]);
482 482 }
483 483
484 + /**
485 + * The table is now able to propagate the error message faced during
486 + * the database insert/update execution.
487 + *
488 + * @since 10.1.58
489 + */
490 + if (!$result)
491 + {
492 + // propagate error message
493 + $this->setError($dbo->getLastError() ?: 'Database query error.');
494 + }
495 +
484 496 // post-processing by observers
485 497 $event->trigger('onAfterStore', array(&$result));
486 498
487 499 return $result;