A lot eval() commands rewritten to constant() function
[mailer.git] / inc / modules / member / what-payout.php
index ad7cbd3ee9f88cb66d94825e58ee47647d7ad483..a62131dcc2a47d16fc646d45b9e416e8d3265487 100644 (file)
@@ -102,8 +102,7 @@ ORDER BY p.payout_timestamp DESC",
                        while (list($pid, $total, $account, $bank, $type, $tstamp, $status, $allow, $url, $alt, $banner) = SQL_FETCHROW($result_payouts))
                        {
                                // Translate status
-                               $evl = "\$status = PAYOUT_MEMBER_STATUS_".strtoupper($status).";";
-                               eval($evl);
+                               $status = constant('PAYOUT_MEMBER_STATUS_'.strtoupper($status).'');
                                $status = "<FONT class=\"member_failed\">".$status."</FONT>";
 
                                // Nothing entered must be secured in member/what-payputs.php !