used dbm::is_result() instead of count()
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
536f078ed4
commit
9814414b6a
2 changed files with 3 additions and 1 deletions
|
@ -139,7 +139,7 @@ function item_post(App &$a) {
|
||||||
|
|
||||||
// If the contact id doesn't fit with the contact, then set the contact to null
|
// If the contact id doesn't fit with the contact, then set the contact to null
|
||||||
$thrparent = q("SELECT `author-link`, `network` FROM `item` WHERE `uri` = '%s' LIMIT 1", dbesc($thr_parent));
|
$thrparent = q("SELECT `author-link`, `network` FROM `item` WHERE `uri` = '%s' LIMIT 1", dbesc($thr_parent));
|
||||||
if (count($thrparent) AND ($thrparent[0]["network"] === NETWORK_OSTATUS)
|
if (dbm::is_result($thrparent) AND ($thrparent[0]["network"] === NETWORK_OSTATUS)
|
||||||
AND (normalise_link($parent_contact["url"]) != normalise_link($thrparent[0]["author-link"]))) {
|
AND (normalise_link($parent_contact["url"]) != normalise_link($thrparent[0]["author-link"]))) {
|
||||||
$parent_contact = null;
|
$parent_contact = null;
|
||||||
|
|
||||||
|
|
|
@ -102,6 +102,8 @@ function lostpass_content(App &$a) {
|
||||||
dbesc($new_password_encoded),
|
dbesc($new_password_encoded),
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/// @TODO Is dbm::is_result() okay here?
|
||||||
if ($r) {
|
if ($r) {
|
||||||
$tpl = get_markup_template('pwdreset.tpl');
|
$tpl = get_markup_template('pwdreset.tpl');
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
|
|
Loading…
Reference in a new issue