Continued with coding convention:
- added curly braces around conditional code blocks - added space between if/foreach/... and brace - rewrote a code block so if dbm::is_result() fails it will abort, else the id is fetched from INSERT statement - made some SQL keywords upper-cased and added back-ticks to columns/table names Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
af2909bf8f
commit
6e44acfed6
31 changed files with 173 additions and 127 deletions
|
|
@ -92,12 +92,14 @@ function directory_content(App &$a) {
|
|||
WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 AND `contact`.`self` $sql_extra $order LIMIT ".$limit);
|
||||
if (dbm::is_result($r)) {
|
||||
|
||||
if(in_array('small', $a->argv))
|
||||
if (in_array('small', $a->argv)) {
|
||||
$photo = 'thumb';
|
||||
else
|
||||
}
|
||||
else {
|
||||
$photo = 'photo';
|
||||
}
|
||||
|
||||
foreach($r as $rr) {
|
||||
foreach ($r as $rr) {
|
||||
|
||||
$itemurl= '';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue