Continued rewriting:
- use dba::is_result() everywhere (where I found the old, bad way) - converted some spaces -> tabs for code - converted some CRLF -> LF as mixures of both is not good Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
56a2bbc740
commit
3e701b90ac
93 changed files with 451 additions and 450 deletions
|
|
@ -21,7 +21,7 @@ function notifications_post(&$a) {
|
|||
intval(local_user())
|
||||
);
|
||||
|
||||
if(count($r)) {
|
||||
if(dba::is_result($r)) {
|
||||
$intro_id = $r[0]['id'];
|
||||
$contact_id = $r[0]['contact-id'];
|
||||
}
|
||||
|
|
@ -149,7 +149,7 @@ function notifications_content(&$a) {
|
|||
WHERE `intro`.`uid` = %d $sql_extra AND `intro`.`blocked` = 0 ",
|
||||
intval($_SESSION['uid']));
|
||||
|
||||
if(($r !== false) && (count($r))) {
|
||||
if(dba::is_result($r)) {
|
||||
|
||||
$sugg = get_markup_template('suggestions.tpl');
|
||||
$tpl = get_markup_template("intros.tpl");
|
||||
|
|
@ -372,7 +372,7 @@ function notifications_content(&$a) {
|
|||
intval(local_user())
|
||||
);
|
||||
|
||||
if (count($r) > 0) {
|
||||
if (dba::is_result($r)) {
|
||||
foreach ($r as $it) {
|
||||
$notif_content .= replace_macros($not_tpl,array(
|
||||
'$item_link' => $a->get_baseurl(true).'/notify/view/'. $it['id'],
|
||||
|
|
@ -424,7 +424,7 @@ function notifications_content(&$a) {
|
|||
|
||||
$notif_content = '';
|
||||
|
||||
if (count($r) > 0) {
|
||||
if (dba::is_result($r)) {
|
||||
|
||||
foreach ($r as $it) {
|
||||
switch($it['verb']){
|
||||
|
|
@ -515,7 +515,7 @@ function notifications_content(&$a) {
|
|||
|
||||
$notif_content = '';
|
||||
|
||||
if (count($r) > 0) {
|
||||
if (dba::is_result($r)) {
|
||||
|
||||
foreach ($r as $it) {
|
||||
switch($it['verb']){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue