aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-18 12:39:13 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-18 12:39:13 +0200
commite9ca17cec14c5a702cc7d656e5206a3c086dd550 (patch)
tree0770b4274c0e109056199db55429b0801b3ce60c /include/photos.php
parentf70956964be5792be296a4e3ec1889a4be2fd475 (diff)
downloadvolse-hubzilla-e9ca17cec14c5a702cc7d656e5206a3c086dd550.tar.gz
volse-hubzilla-e9ca17cec14c5a702cc7d656e5206a3c086dd550.tar.bz2
volse-hubzilla-e9ca17cec14c5a702cc7d656e5206a3c086dd550.zip
fix php warnings
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/photos.php b/include/photos.php
index 9e4e8923d..de9cc6b13 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -247,13 +247,13 @@ function photo_upload($channel, $observer, $args) {
'os_storage' => $os_storage, 'os_syspath' => $args['os_syspath'],
'os_path' => $args['os_path'], 'display_path' => $args['display_path']
];
- if ($args['created'])
+ if (isset($args['created']))
$p['created'] = $args['created'];
- if ($args['edited'])
+ if (isset($args['edited']))
$p['edited'] = $args['edited'];
- if ($args['title'])
+ if (isset($args['title']))
$p['title'] = $args['title'];
- if ($args['description'])
+ if (isset($args['description']))
$p['description'] = $args['description'];
$url = [];
@@ -446,7 +446,7 @@ function photo_upload($channel, $observer, $args) {
];
// Create item container
- if ($args['item']) {
+ if (isset($args['item'])) {
foreach ($args['item'] as $i) {
$item = get_item_elements($i);