diff -r 60c6cf57da73e765eb27a062cc9945fee0056904 -r 92d32d3d5560597101ae04a83c5030311ab3781d indefero/src/IDF/Views.php --- a/indefero/src/IDF/Views.php Thu Aug 01 22:28:19 2013 -0500 +++ b/indefero/src/IDF/Views.php Sat Aug 03 22:58:42 2013 -0500 @@ -477,10 +477,15 @@ $ids[] = $row->model_id; } } - $sql = new Pluf_SQL(sprintf("id IN (%s)", implode(", ", $ids))); - return Pluf::factory('IDF_Project')->getList(array( - 'filter'=> $sql->gen(), - )); + if (count($ids) > 0) + { + $sql = new Pluf_SQL(sprintf("id IN (%s)", implode(", ", $ids))); + return Pluf::factory('IDF_Project')->getList(array( + 'filter'=> $sql->gen(), + )); + } else { + return null; + } } /** diff -r 60c6cf57da73e765eb27a062cc9945fee0056904 -r 92d32d3d5560597101ae04a83c5030311ab3781d indefero/src/IDF/templates/idf/user/public.html --- a/indefero/src/IDF/templates/idf/user/public.html Thu Aug 01 22:28:19 2013 -0500 +++ b/indefero/src/IDF/templates/idf/user/public.html Sat Aug 03 22:58:42 2013 -0500 @@ -46,6 +46,7 @@ Projects: +{if $projects} {foreach $projects as $p} {if $p.private == 0} @@ -55,6 +56,13 @@ {/if} {/foreach} +{else} + + + +{/if}
+ This user is not working on any projects +
Issues user is working on:

{$issues.render}