aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork4be <k4be+gogs@k4be.pl>2023-10-29 14:38:46 +0100
committerk4be <k4be+gogs@k4be.pl>2023-10-29 14:38:46 +0100
commit9b84e0c07fae337757dd4d75d1947e36860b1916 (patch)
tree2906eb25d31084630047698b5a367efdda649e0c
parent3d885eaa50a1ed7d179124fa08925c295b9940ae (diff)
downloadstikked-fit-9b84e0c07fae337757dd4d75d1947e36860b1916.tar.gz
stikked-fit-9b84e0c07fae337757dd4d75d1947e36860b1916.tar.bz2
stikked-fit-9b84e0c07fae337757dd4d75d1947e36860b1916.zip
Fix various theme issues with php8
Reported by PeGaSuS-Coder
-rw-r--r--htdocs/application/libraries/Carabiner.php6
-rw-r--r--htdocs/application/libraries/Jsmin.php4
2 files changed, 6 insertions, 4 deletions
diff --git a/htdocs/application/libraries/Carabiner.php b/htdocs/application/libraries/Carabiner.php
index 6fbafe2..7480368 100644
--- a/htdocs/application/libraries/Carabiner.php
+++ b/htdocs/application/libraries/Carabiner.php
@@ -938,14 +938,16 @@ class Carabiner {
private function _get_contents($ref)
{
+ $contents = false;
if( $this->isURL($ref) && ( ini_get('allow_url_fopen') == 0 || $this->force_curl ) ):
$this->_load('curl');
$contents = $this->CI->curl->simple_get($ref);
else:
-
- $contents = file_get_contents( $ref );
+ if($ref){
+ $contents = file_get_contents( $ref );
+ }
endif;
diff --git a/htdocs/application/libraries/Jsmin.php b/htdocs/application/libraries/Jsmin.php
index 620514f..8299b85 100644
--- a/htdocs/application/libraries/Jsmin.php
+++ b/htdocs/application/libraries/Jsmin.php
@@ -174,7 +174,7 @@ class JSMin {
}
protected function isAlphaNum($c) {
- return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1;
+ return $c ? ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1 : false;
}
protected function min() {
@@ -306,4 +306,4 @@ class JSMin {
// -- Exceptions ---------------------------------------------------------------
class JSMinException extends Exception {}
-?> \ No newline at end of file
+?>

© 2014-2024 Faster IT GmbH | imprint | privacy policy