projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0005214] Stock Check Sheet: changed option name to less confusing for shortages...
[fa-stable.git]
/
includes
/
main.inc
diff --git
a/includes/main.inc
b/includes/main.inc
index 7b37055abc60e317c9f64a413eed964d34607ec9..be058ed9293306e1fa933b09b09a1df1b8dd218d 100644
(file)
--- a/
includes/main.inc
+++ b/
includes/main.inc
@@
-179,6
+179,9
@@
function js_compress($sJS)
//loop through line's characters and take out any literal strings, replace them with ___i___ where i is the index of this string
$len = strlen($line);
//loop through line's characters and take out any literal strings, replace them with ___i___ where i is the index of this string
$len = strlen($line);
+ if (version_compare(PHP_VERSION, '7.0.0') >= 0) // uninitialized string offser error fix. @Braath Waate
+ $line .= chr(32);
+
for($j=0;$j<$len;$j++)
{
$c = $line[$j]; // this is _really_ faster than subst
for($j=0;$j<$len;$j++)
{
$c = $line[$j]; // this is _really_ faster than subst