[smoothoperator] r4181 committed - countx

0 views
Skip to first unread message

smootho...@googlecode.com

unread,
Apr 10, 2013, 2:54:00 PM4/10/13
to smootho...@googlegroups.com
Revision: 4181
Author: ma...@venturevoip.com
Date: Wed Apr 10 11:53:23 2013
Log: countx
http://code.google.com/p/smoothoperator/source/detail?r=4181

Modified:
/SmoothOperatorCRM/add_hung_up.php

=======================================
--- /SmoothOperatorCRM/add_hung_up.php Wed Apr 10 11:52:50 2013
+++ /SmoothOperatorCRM/add_hung_up.php Wed Apr 10 11:53:23 2013
@@ -59,7 +59,7 @@
$result_disposition = mysqli_query($connection, $sql) or die
(mysqli_error($connection));
$row_count = mysqli_fetch_assoc($result_disposition);
$countx = $row_count['count(*)'];
- if ($count == 0) {
+ if ($countx == 0) {
$sql = "INSERT INTO `customer_dispositions` (`customer_id`,
`contact_date_time`, `disposition`, `user_id`, `extension`, `job_id`)
VALUES
(".$row_customer['id'].", '".$row['calldate']."', ".$hung_up[$jobs[$phonenumber]].",
0, 0, ".$job.")";
$sql2 = "UPDATE cdr set userfield2 = 'adjusted' WHERE uniqueid
= '".$uniqueid."'";
echo $sql."\n";
Reply all
Reply to author
Forward
0 new messages