diff --git a/install/db/121-database.php b/install/db/121-database.php
index 3d5192aba..4e922e393 100644
--- a/install/db/121-database.php
+++ b/install/db/121-database.php
@@ -28,6 +28,8 @@ if (!defined('PHPWG_ROOT_PATH'))
// see http://piwigo.org/doc/doku.php?id=user_documentation:htaccess_and_hotlink_in_2.4
+if (!isset($page['errors'])) $page['errors'] = array();
+
$upgrade_description = 'add/append htaccess for hotlinks';
$warning_message = 'Failed to modify .htaccess file, a manual intervention is needed, click here for more information';