Skip to content

Commit

Permalink
Use shorthand if notation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjfisher committed Apr 15, 2014
1 parent be10715 commit d3dbcf1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions delete_domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@
}
$delete_domains = delete_domains($zones);
if ($delete_domains) {
if (count ($deleted_zones) == 1) {
success(SUC_ZONE_DEL);
} else {
success(SUC_ZONES_DEL);
}
count($deleted_zones) == 1 ? success(SUC_ZONE_DEL) : success(SUC_ZONES_DEL);
//Zones successfully deleted so generate log messages from information retrieved earlier
foreach ($deleted_zones as $zone_info) {
log_info(sprintf('client_ip:%s user:%s operation:delete_zone zone:%s zone_type:%s',
Expand Down

0 comments on commit d3dbcf1

Please sign in to comment.