[Freeswitch-svn] [commit] r12703 - freeswitch/trunk/scripts/contrib/swk/php/esl_cdr

FreeSWITCH SVN silik0n at freeswitch.org
Sat Mar 21 05:18:54 PDT 2009


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());
+	}
 }
 ?> 



More information about the Freeswitch-svn mailing list