]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Better typing in lib/framework.php
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Apr 2015 22:26:16 +0000 (00:26 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Apr 2015 22:26:16 +0000 (00:26 +0200)
lib/framework.php

index b71f365c244cd0e3320142c87be199dc219f1550..4ec8b083e02955de5c08275824dd2729bbe5bcab 100644 (file)
@@ -144,7 +144,7 @@ require_once INSTALLDIR.'/lib/action.php';
 require_once INSTALLDIR.'/lib/mail.php';
 
 //set PEAR error handling to use regular PHP exceptions
-function PEAR_ErrorToPEAR_Exception($err)
+function PEAR_ErrorToPEAR_Exception(PEAR_Error $err)
 {
     //DB_DataObject throws error when an empty set would be returned
     //That behavior is weird, and not how the rest of StatusNet works.