aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-03 10:49:34 +0000
committerMario <mario@mariovavti.com>2023-07-03 10:49:34 +0000
commit3497ced9f9a8fb42311165b35ce709ec90f0bce9 (patch)
treecb521c924db5dfdae42f5f7a777f1e2dc5982844 /Zotlabs
parent7a0f22b0a7d909518c22264d524f584c9d2df456 (diff)
downloadvolse-hubzilla-3497ced9f9a8fb42311165b35ce709ec90f0bce9.tar.gz
volse-hubzilla-3497ced9f9a8fb42311165b35ce709ec90f0bce9.tar.bz2
volse-hubzilla-3497ced9f9a8fb42311165b35ce709ec90f0bce9.zip
Ãfix php warning
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/IConfig.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/Zotlabs/Lib/IConfig.php b/Zotlabs/Lib/IConfig.php
index 33d94bd49..74c1107f0 100644
--- a/Zotlabs/Lib/IConfig.php
+++ b/Zotlabs/Lib/IConfig.php
@@ -13,7 +13,7 @@ class IConfig {
static public function Get(&$item, $family, $key, $default = false) {
$is_item = false;
-
+
if(is_array($item)) {
$is_item = true;
if((! array_key_exists('iconfig',$item)) || (! is_array($item['iconfig'])))
@@ -22,7 +22,7 @@ class IConfig {
if(array_key_exists('item_id',$item))
$iid = $item['item_id'];
else
- $iid = $item['id'];
+ $iid = $item['id'] ?? 0;
}
elseif(intval($item))
$iid = $item;
@@ -36,7 +36,7 @@ class IConfig {
return $c['v'];
}
}
-
+
$r = q("select * from iconfig where iid = %d and cat = '%s' and k = '%s' limit 1",
intval($iid),
dbesc($family),
@@ -63,11 +63,11 @@ class IConfig {
* $value - value of meta variable
* $sharing - boolean (default false); if true the meta information is propagated with the item
* to other sites/channels, mostly useful when $item is an array and has not yet been stored/delivered.
- * If the meta information is added after delivery and you wish it to be shared, it may be necessary to
- * alter the item edited timestamp and invoke the delivery process on the updated item. The edited
+ * If the meta information is added after delivery and you wish it to be shared, it may be necessary to
+ * alter the item edited timestamp and invoke the delivery process on the updated item. The edited
* timestamp needs to be altered in order to trigger an item_store_update() at the receiving end.
*/
-
+
static public function Set(&$item, $family, $key, $value, $sharing = false) {
@@ -162,4 +162,4 @@ class IConfig {
}
-} \ No newline at end of file
+}