Skip to content

Commit 5ad41e5

Browse files
committed
Simplify boolean condition
1 parent eef23e3 commit 5ad41e5

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

interface/lib/classes/remote.d/dns.inc.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function dns_aaaa_add($session_id, $client_id, $params, $update_serial=fa
307307
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
308308
return false;
309309
}
310-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
310+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
311311
return $this->insertQuery('../dns/form/dns_aaaa.tform.php', $client_id, $params);
312312
}
313313

@@ -319,7 +319,7 @@ public function dns_aaaa_update($session_id, $client_id, $primary_id, $params, $
319319
return false;
320320
}
321321
$affected_rows = $this->updateQuery('../dns/form/dns_aaaa.tform.php', $client_id, $primary_id, $params);
322-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
322+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
323323
return $affected_rows;
324324
}
325325

@@ -358,7 +358,7 @@ public function dns_a_add($session_id, $client_id, $params, $update_serial=false
358358
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
359359
return false;
360360
}
361-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
361+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
362362
return $this->insertQuery('../dns/form/dns_a.tform.php', $client_id, $params);
363363
}
364364

@@ -369,7 +369,7 @@ public function dns_a_update($session_id, $client_id, $primary_id, $params, $upd
369369
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
370370
return false;
371371
}
372-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
372+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
373373
$affected_rows = $this->updateQuery('../dns/form/dns_a.tform.php', $client_id, $primary_id, $params);
374374
return $affected_rows;
375375
}
@@ -409,7 +409,7 @@ public function dns_alias_add($session_id, $client_id, $params, $update_serial=f
409409
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
410410
return false;
411411
}
412-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
412+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
413413
return $this->insertQuery('../dns/form/dns_alias.tform.php', $client_id, $params);
414414
}
415415

@@ -420,7 +420,7 @@ public function dns_alias_update($session_id, $client_id, $primary_id, $params,
420420
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
421421
return false;
422422
}
423-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
423+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
424424
$affected_rows = $this->updateQuery('../dns/form/dns_alias.tform.php', $client_id, $primary_id, $params);
425425
return $affected_rows;
426426
}
@@ -460,7 +460,7 @@ public function dns_cname_add($session_id, $client_id, $params, $update_serial=f
460460
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
461461
return false;
462462
}
463-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
463+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
464464
return $this->insertQuery('../dns/form/dns_cname.tform.php', $client_id, $params);
465465
}
466466

@@ -471,7 +471,7 @@ public function dns_cname_update($session_id, $client_id, $primary_id, $params,
471471
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
472472
return false;
473473
}
474-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
474+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
475475
$affected_rows = $this->updateQuery('../dns/form/dns_cname.tform.php', $client_id, $primary_id, $params);
476476
return $affected_rows;
477477
}
@@ -511,7 +511,7 @@ public function dns_hinfo_add($session_id, $client_id, $params, $update_serial=f
511511
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
512512
return false;
513513
}
514-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
514+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
515515
return $this->insertQuery('../dns/form/dns_hinfo.tform.php', $client_id, $params);
516516
}
517517

@@ -522,7 +522,7 @@ public function dns_hinfo_update($session_id, $client_id, $primary_id, $params,
522522
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
523523
return false;
524524
}
525-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
525+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
526526
$affected_rows = $this->updateQuery('../dns/form/dns_hinfo.tform.php', $client_id, $primary_id, $params);
527527
return $affected_rows;
528528
}
@@ -562,7 +562,7 @@ public function dns_mx_add($session_id, $client_id, $params, $update_serial=fals
562562
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
563563
return false;
564564
}
565-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
565+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
566566
return $this->insertQuery('../dns/form/dns_mx.tform.php', $client_id, $params);
567567
}
568568

@@ -573,7 +573,7 @@ public function dns_mx_update($session_id, $client_id, $primary_id, $params, $up
573573
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
574574
return false;
575575
}
576-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
576+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
577577
$affected_rows = $this->updateQuery('../dns/form/dns_mx.tform.php', $client_id, $primary_id, $params);
578578
return $affected_rows;
579579
}
@@ -613,7 +613,7 @@ public function dns_ns_add($session_id, $client_id, $params, $update_serial=fals
613613
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
614614
return false;
615615
}
616-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
616+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
617617
return $this->insertQuery('../dns/form/dns_ns.tform.php', $client_id, $params);
618618
}
619619

@@ -624,7 +624,7 @@ public function dns_ns_update($session_id, $client_id, $primary_id, $params, $up
624624
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
625625
return false;
626626
}
627-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
627+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
628628
$affected_rows = $this->updateQuery('../dns/form/dns_ns.tform.php', $client_id, $primary_id, $params);
629629
return $affected_rows;
630630
}
@@ -664,7 +664,7 @@ public function dns_ptr_add($session_id, $client_id, $params, $update_serial=fal
664664
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
665665
return false;
666666
}
667-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
667+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
668668
return $this->insertQuery('../dns/form/dns_ptr.tform.php', $client_id, $params);
669669
}
670670

@@ -675,7 +675,7 @@ public function dns_ptr_update($session_id, $client_id, $primary_id, $params, $u
675675
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
676676
return false;
677677
}
678-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
678+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
679679
$affected_rows = $this->updateQuery('../dns/form/dns_ptr.tform.php', $client_id, $primary_id, $params);
680680
return $affected_rows;
681681
}
@@ -715,7 +715,7 @@ public function dns_rp_add($session_id, $client_id, $params, $update_serial=fals
715715
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
716716
return false;
717717
}
718-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
718+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
719719
return $this->insertQuery('../dns/form/dns_rp.tform.php', $client_id, $params);
720720
}
721721

@@ -726,7 +726,7 @@ public function dns_rp_update($session_id, $client_id, $primary_id, $params, $up
726726
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
727727
return false;
728728
}
729-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
729+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
730730
$affected_rows = $this->updateQuery('../dns/form/dns_rp.tform.php', $client_id, $primary_id, $params);
731731
return $affected_rows;
732732
}
@@ -766,7 +766,7 @@ public function dns_srv_add($session_id, $client_id, $params, $update_serial=fal
766766
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
767767
return false;
768768
}
769-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
769+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
770770
return $this->insertQuery('../dns/form/dns_srv.tform.php', $client_id, $params);
771771
}
772772

@@ -777,7 +777,7 @@ public function dns_srv_update($session_id, $client_id, $primary_id, $params, $u
777777
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
778778
return false;
779779
}
780-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
780+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
781781
$affected_rows = $this->updateQuery('../dns/form/dns_srv.tform.php', $client_id, $primary_id, $params);
782782
return $affected_rows;
783783
}
@@ -817,7 +817,7 @@ public function dns_txt_add($session_id, $client_id, $params, $update_serial=fal
817817
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
818818
return false;
819819
}
820-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
820+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
821821
return $this->insertQuery('../dns/form/dns_txt.tform.php', $client_id, $params);
822822
}
823823

@@ -828,7 +828,7 @@ public function dns_txt_update($session_id, $client_id, $primary_id, $params, $u
828828
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
829829
return false;
830830
}
831-
if($update_serial != false) $this->increase_serial($session_id, $client_id, $params);
831+
if($update_serial) $this->increase_serial($session_id, $client_id, $params);
832832
$affected_rows = $this->updateQuery('../dns/form/dns_txt.tform.php', $client_id, $primary_id, $params);
833833
return $affected_rows;
834834
}

0 commit comments

Comments
 (0)