From 5abf9dc5c437c3c0dc3408c3a583106fa6babcc2 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Wed, 20 Jun 2012 22:29:00 +0200 Subject: minor bugfixes --- .gitignore | 1 + .htaccess | 1 - lib/image/folder.php | 2 +- lib/notes/source.php | 2 +- tpl/account/list.php | 6 +++++- 5 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 .htaccess diff --git a/.gitignore b/.gitignore index b792c3e..9b7ca5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ lib/conf/sql.php +.htaccess *.swp nohup.out _old diff --git a/.htaccess b/.htaccess deleted file mode 100644 index c99f058..0000000 --- a/.htaccess +++ /dev/null @@ -1 +0,0 @@ -ErrorDocument 404 /alex.auvolat/index.php diff --git a/lib/image/folder.php b/lib/image/folder.php index 56166d8..574531c 100644 --- a/lib/image/folder.php +++ b/lib/image/folder.php @@ -14,7 +14,7 @@ $fld = mysql_fetch_assoc(sql( assert_error($fld && ($fld['public'] != 0 || $fld['owner'] == $user['id']), "This folder does not exist, or you are not allowed to see it."); -$can_edit = ($user['priv'] >= $apps['image']['editfld'] && $user['id'] = $fld['owner']); +$can_edit = ($user['priv'] >= $apps['image']['editfld'] && $user['id'] == $fld['owner']); $is_owner = ($user['id'] == $fld['owner']); $filters = array ( diff --git a/lib/notes/source.php b/lib/notes/source.php index cecf1c8..d032d33 100644 --- a/lib/notes/source.php +++ b/lib/notes/source.php @@ -15,7 +15,7 @@ assert_error($note && ($note['public'] != 0 || $note['owner'] == $user['id']), -
+
"; echo "UsernameNotebookBlog"; foreach($users as $u) { echo '' . $u['name'] . ''; - echo '' . $u['nbNotes'] . ' notes'; + if ($u['nbNotes'] > 0) { + echo '' . $u['nbNotes'] . ' notes'; + } else { + echo 'no notes'; + } if ($u['nbPosts'] > 0) { echo '' . $u['nbPosts'] . ' posts'; } else { -- cgit v1.2.3