diff options
author | Mario <mario@mariovavti.com> | 2022-12-11 20:46:02 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-12-11 20:46:02 +0000 |
commit | 45f8e43be425b9718aa9ac819256ea407af900f0 (patch) | |
tree | c81eca1d202a30530a7264de9275512e975b5201 | |
parent | 7ef0b05ce68a24f3f0d98de5018a2ee64520b168 (diff) | |
download | volse-hubzilla-45f8e43be425b9718aa9ac819256ea407af900f0.tar.gz volse-hubzilla-45f8e43be425b9718aa9ac819256ea407af900f0.tar.bz2 volse-hubzilla-45f8e43be425b9718aa9ac819256ea407af900f0.zip |
debug from php log
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 6 | ||||
-rw-r--r-- | include/auth.php | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index b0d33e055..c635fdb17 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -291,6 +291,12 @@ class Libzot { } $m = parse_url($url); + + if (!$m) { + logger('zot_refresh: could not parse url'); + return false; + } + $site_url = unparse_url([ 'scheme' => $m['scheme'], 'host' => $m['host'] ]); $s = q("select site_dead from site where site_url = '%s' limit 1", diff --git a/include/auth.php b/include/auth.php index 4f4d26a6c..8f0b137be 100644 --- a/include/auth.php +++ b/include/auth.php @@ -94,7 +94,7 @@ function account_verify_password($login, $pass) { $where = " where account_email = '" . dbesc($login) . "' "; } - $a = q("select * from account $where"); + $a = dbq("select * from account $where"); if(! $a) { return null; } |