diff --git a/inc/PassHash.class.php b/inc/PassHash.class.php
index cb46c5928822b15ac111a1b4f1e9893d6dd2bc80..541de675271fbfba8bde7afdbdd0eaed3655c493 100644
--- a/inc/PassHash.class.php
+++ b/inc/PassHash.class.php
@@ -126,7 +126,7 @@ class PassHash {
             return crypt($clear,'$1$'.$salt.'$');
         }else{
             // Fall back to PHP-only implementation
-            return $this->apr1($clear, $salt, '1');
+            return $this->hash_apr1($clear, $salt, '1');
         }
     }