From: <rob...@us...> - 2012-07-25 19:27:36
|
Revision: 42475 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42475&view=rev Author: robertplummer Date: 2012-07-25 19:27:29 +0000 (Wed, 25 Jul 2012) Log Message: ----------- [ROLLBACK] Accidental commit of some debug code Modified Paths: -------------- branches/9.x/lib/smarty_tiki/function.payment.php Modified: branches/9.x/lib/smarty_tiki/function.payment.php =================================================================== --- branches/9.x/lib/smarty_tiki/function.payment.php 2012-07-25 18:53:35 UTC (rev 42474) +++ branches/9.x/lib/smarty_tiki/function.payment.php 2012-07-25 19:27:29 UTC (rev 42475) @@ -24,33 +24,7 @@ // Unpaid payments can be seen by anyone as long as they know the number // Just like your bank account, anyone can drop money in it. - print_r(array( - $invoice, - $user, - $userlib->get_user_id($user), - $info, - $objectperms->payment_view, - $info['state'] == 'outstanding', - $info['state'] == 'overdue', - $prefs['payment_user_only_his_own'] != 'y', - $info['state'] == 'past', - $prefs['payment_user_only_his_own_past'] != 'y', - $theguy, - )); - if ( - $info && - $objectperms->payment_view && - ( - ( - $info['state'] == 'outstanding' || - $info['state'] == 'overdue' - ) && - $prefs['payment_user_only_his_own'] != 'y' || - $info['state'] == 'past' && - $prefs['payment_user_only_his_own_past'] != 'y' || - $theguy - ) - ) { + if ( $info && $objectperms->payment_view && (($info['state'] == 'outstanding' || $info['state'] == 'overdue') && $prefs['payment_user_only_his_own'] != 'y' || $info['state'] == 'past' && $prefs['payment_user_only_his_own_past'] != 'y' || $theguy )) { if ($prefs['payment_system'] == 'cclite' && isset($_POST['cclite_payment_amount']) && $_POST['cclite_payment_amount'] == $info['amount_remaining']) { global $access, $cclitelib, $cartlib; require_once 'lib/payment/cclitelib.php'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |