aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-12-31 09:55:27 +0100
committerMario Vavti <mario@mariovavti.com>2023-12-31 09:55:27 +0100
commit62db8c3969f783897ff2de1bf3250057c37eb422 (patch)
tree4201794d9550de52bd36aead6f494de16340aef9
parentae3db366e50a07b1d960650e8c40a0de09341d10 (diff)
downloadvolse-hubzilla-62db8c3969f783897ff2de1bf3250057c37eb422.tar.gz
volse-hubzilla-62db8c3969f783897ff2de1bf3250057c37eb422.tar.bz2
volse-hubzilla-62db8c3969f783897ff2de1bf3250057c37eb422.zip
fix php errors and deprecation warnings
-rw-r--r--Zotlabs/Photo/PhotoGd.php6
-rw-r--r--Zotlabs/Text/Tagadelic.php4
-rw-r--r--Zotlabs/Zot6/Receiver.php1
-rw-r--r--include/plugin.php2
4 files changed, 7 insertions, 6 deletions
diff --git a/Zotlabs/Photo/PhotoGd.php b/Zotlabs/Photo/PhotoGd.php
index c54fa6a7d..6854be0ab 100644
--- a/Zotlabs/Photo/PhotoGd.php
+++ b/Zotlabs/Photo/PhotoGd.php
@@ -17,11 +17,11 @@ class PhotoGd extends PhotoDriver {
$t = [];
$t['image/jpeg'] = 'jpg';
- if(imagetypes() & IMG_PNG)
+ if(\imagetypes() & IMG_PNG)
$t['image/png'] = 'png';
- if(imagetypes() & IMG_GIF)
+ if(\imagetypes() & IMG_GIF)
$t['image/gif'] = 'gif';
- if(imagetypes() & IMG_WEBP)
+ if(\imagetypes() & IMG_WEBP)
$t['image/webp'] = 'webp';
return $t;
diff --git a/Zotlabs/Text/Tagadelic.php b/Zotlabs/Text/Tagadelic.php
index 55ecf2d75..b96b60d3e 100644
--- a/Zotlabs/Text/Tagadelic.php
+++ b/Zotlabs/Text/Tagadelic.php
@@ -24,7 +24,7 @@ class Tagadelic {
$x ++;
}
- usort($tags,'self::tags_sort');
+ usort($tags, [self::class, 'tags_sort']);
$range = max(.01, $max - $min) * 1.0001;
@@ -41,4 +41,4 @@ class Tagadelic {
return((strtolower($a[0]) < strtolower($b[0])) ? -1 : 1);
}
-} \ No newline at end of file
+}
diff --git a/Zotlabs/Zot6/Receiver.php b/Zotlabs/Zot6/Receiver.php
index b276cbe31..feaef4c9a 100644
--- a/Zotlabs/Zot6/Receiver.php
+++ b/Zotlabs/Zot6/Receiver.php
@@ -22,6 +22,7 @@ class Receiver {
protected $prvkey;
protected $rawdata;
protected $sigdata;
+ protected $hub;
function __construct($handler, $localdata = null) {
diff --git a/include/plugin.php b/include/plugin.php
index f1d501001..2a35b72de 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -190,7 +190,7 @@ function reload_plugins() {
$plugins = get_config('system', 'addon');
if(strlen($plugins)) {
$r = dbq("SELECT * FROM addon WHERE installed = 1");
- if(count($r))
+ if($r)
$installed = $r;
else
$installed = array();