Jan Schnieder / Greg Wilson improvements to Goldfish

13 views
Skip to first unread message

Pete Boyd

unread,
Jul 9, 2009, 4:57:40 AM7/9/09
to goldfish-user
Jan Schnieder by way of Greg Wilson on the workaround.org list has
made these changes to Goldfish. Are they worthwhile?

This in the original:
$conf['q_disable_forwarding'] = "UPDATE `autoresponder` SET `enabled`
= 0 WHERE `to` < CURDATE();";
$conf['q_enable_forwarding'] = "UPDATE `autoresponder` SET `enabled` =
1 WHERE `from` = CURDATE();";

He changes to this:
$conf['q_disable_forwarding'] = 'SELECT 1';//"UPDATE `autoresponder`
SET `enabled` = 0 WHERE `to` < CURDATE();";
$conf['q_enable_forwarding'] = 'SELECT 1';//"UPDATE `autoresponder`
SET `enabled` = 1 WHERE `from` = CURDATE();";


This in the original:
$num = mysql_num_rows($result);

He changes to this:
$num = mysql_num_rows($result);
$emails = $name = $paths = array();


This in the original:
$paths[] = mysql_result($result, 0, 'path') . 'new/';

He changes to this:
if (mysql_num_rows($result)) {
$paths[] = mysql_result($result, 0, 'path') . 'new/';
}
Reply all
Reply to author
Forward
0 new messages