diff --git a/lib/Auth/Source/Pica.php b/lib/Auth/Source/Pica.php
index e9165b81c549cf97ec42ffd51f007bae8cec6527..d46bfeda8ae2df14c836c42a0f6b5f467dae7131 100644
--- a/lib/Auth/Source/Pica.php
+++ b/lib/Auth/Source/Pica.php
@@ -107,6 +107,7 @@ class sspmod_pica_Auth_Source_Pica extends sspmod_core_Auth_UserPassBase
         default:
             throw new Exception("Unknown pica authentication module: '{$module}'");
         }
+        return $factory;
     }
 
     /**