diff options
author | root <root@adnab.me> | 2014-01-31 19:08:03 +0100 |
---|---|---|
committer | root <root@adnab.me> | 2014-01-31 19:08:03 +0100 |
commit | 77048675abf5fad43e8b5371c35e1c86b3be59c2 (patch) | |
tree | 2d77c78988a4a354af3653481785aeea00429e5e /lib/blog/index.php | |
parent | 2a274c011d177f5ad1e863301b8b88c560a3829d (diff) | |
download | Bits-77048675abf5fad43e8b5371c35e1c86b3be59c2.tar.gz Bits-77048675abf5fad43e8b5371c35e1c86b3be59c2.zip |
Privilege changesadnab.me-site
Diffstat (limited to 'lib/blog/index.php')
-rw-r--r-- | lib/blog/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/blog/index.php b/lib/blog/index.php index 08aa630..99c7bbe 100644 --- a/lib/blog/index.php +++ b/lib/blog/index.php @@ -39,7 +39,7 @@ function count_in($fat, $v, $d) { } $q = - "SELECT blog_posts.id AS id, blog_posts.title AS title, blog_posts.date AS date, ". + "SELECT blog_posts.id AS id, blog_posts.title AS title, DATE_fORMAT(blog_posts.date, '%Y-%m-%d') AS date, ". "UNIX_TIMESTAMP(blog_posts.date) AS date_ts, ". "DATE_FORMAT(blog_posts.date, '%Y-%m') AS month, ". "blog_posts.text_html AS text_html, GROUP_CONCAT(DISTINCT ba.tag SEPARATOR ', ') AS tags, ". @@ -70,7 +70,7 @@ while ($pp = mysql_fetch_assoc($n)) { count_in('date', str_replace('-', '_', $pp['month']), $pp['month']); } -$can_post = ($user['priv'] >= $apps['blog']['drafts'] && $user['id'] != 0); +$can_post = (($user['priv'] >= $apps['blog']['drafts'] && $user['id'] != 0)); $can_edit = ($user['priv'] >= $apps['blog']['edit'] && $user['id'] != 0); $can_delete = ($user['priv'] >= $apps['blog']['delete'] && $user['id'] != 0); |