fixed myhome picture count by clean implementation of table fill-up

This commit is contained in:
following
2013-03-16 18:15:38 +01:00
parent 047032a78e
commit bf13d22de5
2 changed files with 8 additions and 9 deletions

View File

@@ -166,12 +166,7 @@ function get_logpics($purpose, $userid=0, $cacheid=0, $startat=0)
}
if ($rs !== false)
{
$result = sql_fetch_assoc_table($rs);
while (count($result) % 6)
// fill up table to full line length, so that < 6 pics do not spread over the table width
$result[] = array('pic_uuid' => '');
}
return $result;
}