diff --git a/htdocs/theme/phones/smartphone/tpl/passwordforgotten.tpl.php b/htdocs/theme/phones/smartphone/tpl/passwordforgotten.tpl.php
index 1af6243ee22a214215d5c9d84bb75f6ff736a236..3d806d715eb13e992ae5aee91592cc752dd6f99c 100644
--- a/htdocs/theme/phones/smartphone/tpl/passwordforgotten.tpl.php
+++ b/htdocs/theme/phones/smartphone/tpl/passwordforgotten.tpl.php
@@ -67,9 +67,9 @@ $smartphone->smartheader();
 
 </div><!-- /page -->
 
-<?php if ($dol_loginmesg) { ?>
+<?php if ($message) { ?>
 	<script type="text/javascript" language="javascript">
-		alert('<?php echo $dol_loginmesg; ?>');
+		alert('<?php echo $message; ?>');
 	</script>
 <?php } ?>