Merge pull request #16484 from yashodha/dev_1580
[civicrm-core.git] / CRM / Core / BAO / ActionLog.php
index 7615b9724930334a1be92c3e66b6cb8a95a99a5e..c04e3f30cceb68fd6bfa9226d829453096b81e30 100644 (file)
@@ -36,7 +36,7 @@ class CRM_Core_BAO_ActionLog extends CRM_Core_DAO_ActionLog {
 
     $actionLog->copyValues($params);
 
-    $edit = ($actionLog->id) ? TRUE : FALSE;
+    $edit = (bool) $actionLog->id;
     if ($edit) {
       CRM_Utils_Hook::pre('edit', 'ActionLog', $actionLog->id, $actionLog);
     }