1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-28 16:50:07 +02:00

#2209 Display message when user registration is disabled and preventing login form from rendering.

This commit is contained in:
Cameron
2017-01-24 15:22:03 -08:00
parent 57c41f5ae9
commit 031c1c922d
2 changed files with 14 additions and 2 deletions

View File

@@ -59,8 +59,13 @@ $query .= "
ORDER BY n.news_sticky DESC, n.news_datestamp DESC
LIMIT ".$limit;
$data = $sql->retrieve($query,true);
if(empty($data))
{
e107::getMessage()->addDebug( "No News items found with 'carousel' as the template ")->render();
@@ -73,7 +78,7 @@ $count = 0;
$sc = e107::getScBatch('news');
$text = '';
$nav = array();
foreach($data as $row)
{