Skip to content

Commit

Permalink
change condition on hook function return
Browse files Browse the repository at this point in the history
  • Loading branch information
qhess34 committed Feb 1, 2021
1 parent 0d8d21e commit b8ceb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wwwroot/inc/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -3841,7 +3841,7 @@ function commitUpdateAttrValue ($object_id, $attr_id, $value = '')
global $object_attribute_cache;

$override = callHook ('commitUpdateAttrBefore_hook', $object_id, $attr_id, $value);
if ($override)
if (isset($override))
$value = $override;

if (isset ($object_attribute_cache[$object_id]))
Expand Down

0 comments on commit b8ceb7c

Please sign in to comment.