0): ?>
= $unread_notifications > 9 ? '9+' : $unread_notifications ?>
query("SELECT label_name as tag FROM notes WHERE label_name IS NOT NULL AND label_name != ''")->fetchAll(); foreach($rows as $r) { foreach(explode(',', $r['tag']) as $p) { $all_app_tags[trim($p)] = 1; } } $rows = $pdo->query("SELECT tags as tag FROM tasks WHERE tags IS NOT NULL AND tags != ''")->fetchAll(); foreach($rows as $r) { foreach(explode(',', $r['tag']) as $p) { $all_app_tags[trim($p)] = 1; } } } catch(Exception $e) {} $global_tags = array_keys($all_app_tags); ?>
prepare("SELECT * FROM notifications WHERE user_id=? ORDER BY created_at DESC LIMIT 30"); $stmt_n->execute([$user_id]); $notif_list = $stmt_n->fetchAll(); } catch(Exception $e) {} ?>