Skip to content

Commit bb7c751

Browse files
author
Phil Taylor
authored
Update MenusHelper.php (#32269)
1 parent 06b1c3b commit bb7c751

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

administrator/components/com_menus/src/Helper/MenusHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,19 +587,19 @@ protected static function installPresetItems($node, $menutype)
587587

588588
if (!$table->bind($record))
589589
{
590-
throw new \Exception('Bind failed: ' . $table->getError());
590+
throw new \Exception($table->getError());
591591
}
592592

593593
$table->setLocation($item->getParent()->id, 'last-child');
594594

595595
if (!$table->check())
596596
{
597-
throw new \Exception('Check failed: ' . $table->getError());
597+
throw new \Exception($table->getError());
598598
}
599599

600600
if (!$table->store())
601601
{
602-
throw new \Exception('Saved failed: ' . $table->getError());
602+
throw new \Exception($table->getError());
603603
}
604604

605605
$item->id = $table->get('id');

0 commit comments

Comments
 (0)