Skip to content

Commit

Permalink
fda
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Mar 2, 2023
1 parent 58d81b0 commit 15ee4e3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Binary file added archive/ca.turbo-2023.03.02-x86_64-1.txz
Binary file not shown.
7 changes: 5 additions & 2 deletions plugins/ca.turbo.plg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "ca.turbo">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2023.02.20">
<!ENTITY md5 "6d7c337cb8a2fdb1661a466f42a5dcb8">
<!ENTITY version "2023.03.02">
<!ENTITY md5 "2eea9b827685afb6da58da06c5a6d518">
<!ENTITY launch "Settings/Turbo">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/ca.turbo">
Expand All @@ -13,6 +13,9 @@
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon='tachometer'>

<CHANGES>
###2023.03.02
- PHP8 Upgrades

###2023.02.20
- PHP8 Compliance

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
$o .= " $('#spunDown').html('$spunDown');";
$msg = ($status['mode'] == "turbo") ? "Turbo (Reconstruct Write)" : "Normal (Read/Modify/Write)";

if ( $status['override'] ) {
if ( $status['override'] ?? false ) {
$msg .= " Autoscript overridden";
}
if ( (! is_file($turboPaths['backgroundPID']) ) && (! $status['override'] ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ function getPost($setting,$default) {
}

function getPostArray($setting) {
return $_POST[$setting];
return $_POST[$setting] ?? null;
}

function create_ini_file($settings,$mode=false) {
$iniFile = "";
if ( $mode ) {
$keys = array_keys($settings);

Expand Down

0 comments on commit 15ee4e3

Please sign in to comment.