aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Update.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-03 15:26:46 +0000
committerMario <mario@mariovavti.com>2022-11-03 15:26:46 +0000
commitb55801323c19928fc7cb82c007856087e3d6545a (patch)
tree776e6b24a5f100974812bb1708365c228b9190fa /Zotlabs/Module/Update.php
parent818374c8ccf29b0911fc02e2d9786eff3a731088 (diff)
downloadvolse-hubzilla-b55801323c19928fc7cb82c007856087e3d6545a.tar.gz
volse-hubzilla-b55801323c19928fc7cb82c007856087e3d6545a.tar.bz2
volse-hubzilla-b55801323c19928fc7cb82c007856087e3d6545a.zip
fix warnings
Diffstat (limited to 'Zotlabs/Module/Update.php')
-rw-r--r--Zotlabs/Module/Update.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Update.php b/Zotlabs/Module/Update.php
index b3252f8b9..7a8db3469 100644
--- a/Zotlabs/Module/Update.php
+++ b/Zotlabs/Module/Update.php
@@ -5,8 +5,8 @@ namespace Zotlabs\Module;
class Update extends \Zotlabs\Web\Controller {
function get() {
-
- $profile_uid = intval($_GET['p']);
+
+ $profile_uid = $_GET['p'] ?? 0;
// it's probably safe to do this for all modules and not just a limited subset,
// but it needs to be verified.
@@ -23,7 +23,7 @@ class Update extends \Zotlabs\Web\Controller {
if(in_array(strtolower(argv(1)),['articles','cards']))
killme();
- $module = "\\Zotlabs\\Module\\" . ucfirst(argv(1));
+ $module = "\\Zotlabs\\Module\\" . ucfirst(argv(1));
$load = (((argc() > 2) && (argv(2) == 'load')) ? 1 : 0);
$mod = new $module;
@@ -38,6 +38,6 @@ class Update extends \Zotlabs\Web\Controller {
echo "</section></body></html>\r\n";
killme();
-
+
}
}