Skip to content

Commit

Permalink
Merge pull request #18 from typecho/master
Browse files Browse the repository at this point in the history
Fix multiple calls returning the same object (typecho#1478)
  • Loading branch information
penndu committed Jul 15, 2022
2 parents 85d6a96 + f07b57f commit 0b1831d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/Utils/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function widgetById(string $table, int $pkId): ?Widget

$key = $keys[$table];
$db = Db::get();
$widget = Widget::widget($className);
$widget = Widget::widget($className . '@' . $pkId);

$db->fetchRow(
$widget->select()->where("{$key} = ?", $pkId)->limit(1),
Expand Down

0 comments on commit 0b1831d

Please sign in to comment.