diff --git a/img/index.php b/img/index.php
index 97fa327..1aaec64 100755
--- a/img/index.php
+++ b/img/index.php
@@ -1,8 +1,25 @@
= 1){
$i = 0;
while ($row = mysql_fetch_assoc($result)){
$id = $row['id'];
@@ -52,7 +69,7 @@
$sql = "SELECT id, name, location, type, size, time, comment, username, tags FROM $tbl_name WHERE 'tags' LIKE '$tag'";
$result = mysql_query($sql);
$count = mysql_num_rows($result);
- if($count == 1){
+ if($count >= 1){
$i = 0;
while ($row = mysql_fetch_assoc($result)){
$id = $row['id'];
@@ -153,7 +170,7 @@
if($handle = opendir('Pictures')){
while(false != ($file = readdir($handle))){
if($file != "." && $file != ".." && $file != ".htaccess"){
- $thelist .= ''.$file.'
';
+ $thelist .= ''.$file.'
';
}
}
closedir($handle);