fix the cleaning

This commit is contained in:
Squidly271 2022-11-18 17:40:25 -05:00
parent bc7b5c1746
commit f29baffa17
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ ae9874967a4715939f3e97c53676cc33 ./Apps.page
4c5d4598e1bafa46bd90c27cbe302122 ./ca_settings.page
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
69ab8fcb35d59d712aed59b50932efeb ./include/exec.php
46e4705b2a7e379a7930496228cbaac6 ./include/helpers.php
bbf2bcbf6bdf790504705fc7f61321aa ./include/helpers.php
116042a918060278e77379b0dd73482c ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js
71f911a818d88d3d567f8a2898094ee2 ./README.md

View File

@ -10,7 +10,7 @@
# Convert Array("one","two","three") to be Array("one"=>$defaultFlag, "two"=>$defaultFlag, "three"=>$defaultFlag #
##################################################################################################################
function arrayEntriesToObject($sourceArray,$defaultFlag=true) {
return is_array($sourceArray) ? array_fill_keys($sourceArray,$defaultFlag) : []);
return is_array($sourceArray) ? array_fill_keys($sourceArray,$defaultFlag) : [];
}
###########################################################################
# Helper function to determine if a plugin has an update available or not #
@ -580,7 +580,7 @@ if ( ! function_exists("tr") ) {
if ( startsWith($translated,""") && endsWith($translated,""") )
$translated = first_str_replace(last_str_replace($translated,""",""),""","");
$translated = str_replace(['"',"'"],[""","'"],$translated));
$translated = str_replace(['"',"'"],[""","'"],$translated);
return $translated;
}