diff --git a/mod.php b/mod.php
index c23afb1f..6bce948f 100644
--- a/mod.php
+++ b/mod.php
@@ -108,7 +108,10 @@
if(gettype($value) == 'boolean') {
$value = $value ? 'On' : 'Off';
} elseif(gettype($value) == 'string') {
- $value = '' . utf8tohtml(substr($value, 0, 110) . (strlen($value) > 110 ? '…' : '')) . '';
+ if(empty($value))
+ $value = 'empty';
+ else
+ $value = '' . utf8tohtml(substr($value, 0, 110) . (strlen($value) > 110 ? '…' : '')) . '';
} elseif(gettype($value) == 'integer') {
// Show permissions in a cleaner way
if(preg_match('/^MOD_/', $name) && $name != 'MOD_JANITOR' && $name != 'MOD_MOD' && $name != 'MOD_ADMIN') {