Skip to content

Commit

Permalink
Update save_template.processor.php
Browse files Browse the repository at this point in the history
fix PHP message: PHP Deprecated:  Unparenthesized `a ? b : c ? d : e` is deprecated.
  • Loading branch information
zatomant authored Oct 16, 2020
1 parent bd9ac5f commit 437225a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/processors/save_template.processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$description = $modx->db->escape($_POST['description']);
$locked = $_POST['locked'] == 'on' ? 1 : 0;
$selectable = $id == $modx->config['default_template'] ? 1 : // Force selectable
$_POST['selectable'] == 'on' ? 1 : 0;
($_POST['selectable'] == 'on' ? 1 : 0);
$currentdate = time() + $modx->config['server_offset_time'];

//Kyle Jaebker - added category support
Expand Down

0 comments on commit 437225a

Please sign in to comment.