21 Mar
2009
21 Mar
'09
12:18 p.m.
Author: silik0n Date: Sat Mar 21 07:18:54 2009 New Revision: 12703 Log: oops Modified: freeswitch/trunk/scripts/contrib/swk/php/esl_cdr/esl_cdr.php Modified: freeswitch/trunk/scripts/contrib/swk/php/esl_cdr/esl_cdr.php ============================================================================== --- freeswitch/trunk/scripts/contrib/swk/php/esl_cdr/esl_cdr.php (original) +++ freeswitch/trunk/scripts/contrib/swk/php/esl_cdr/esl_cdr.php Sat Mar 21 07:18:54 2009 @@ -98,6 +98,9 @@ "0" ); - $dbh->exec($insert) or die($db->errorInfo()); + $inserted = $dbh->exec($insert); + if ($inserted < 1){ + die($db->errorInfo()); + } } ?>