X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Flogs.cgi%2Fovpnclients.dat;fp=html%2Fcgi-bin%2Flogs.cgi%2Fovpnclients.dat;h=b84c2b8d7baec5b7deb940a07c28c193a059fd43;hp=cf3e0e7bc06c3d25884edd408491408db61224ff;hb=c7d55d7fbda744ba8c187585f1aa271829648695;hpb=1242cb0134ee9008b613a56957dbf7fe3f4b6b3d diff --git a/html/cgi-bin/logs.cgi/ovpnclients.dat b/html/cgi-bin/logs.cgi/ovpnclients.dat index cf3e0e7bc0..b84c2b8d7b 100755 --- a/html/cgi-bin/logs.cgi/ovpnclients.dat +++ b/html/cgi-bin/logs.cgi/ovpnclients.dat @@ -293,8 +293,13 @@ while(my @row = $statement_handle->fetchrow_array()) { # Increase lines count. $lines++; +} - } +# If nothing has been fetched, the amount of lines is still zero. +# In this case display a hint about no data. +unless ($lines) { + print "$Lang::tr{'no entries'}\n"; +} print "
\n";