Do not decrypt and return if no data in db (decrypt returning garbage)

This commit is contained in:
Miles Lott 2001-12-26 05:24:51 +00:00
parent c84ba29fd4
commit 816b7e2d47

View File

@ -733,10 +733,15 @@
// return stripslashes($data);
// Changed by milosch 2001 Dec 20
// do not stripslashes here unless this proves to be a problem.
// Changed by milosch 2001 Dec 25
// do not decrypt and return if no data (decrypt returning garbage)
if($data)
{
$data = $GLOBALS['phpgw']->common->decrypt($data);
//echo 'appsession returning: '; _debug_array($data);
return $data;
}
}
else
{
$GLOBALS['phpgw']->db->query("SELECT content FROM phpgw_app_sessions WHERE "