[guadec-web] removed update function
- From: Saumya Dwivedi <saumyad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] removed update function
- Date: Wed, 9 Jul 2014 07:43:13 +0000 (UTC)
commit 17c4b9fec4209bbade60d6b2425ca2a8cffbe7d5
Author: Saumya Dwivedi <saumya zero gmail com>
Date: Wed Jul 9 13:12:57 2014 +0530
removed update function
guadec/ipnlistener.php | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/guadec/ipnlistener.php b/guadec/ipnlistener.php
index 6a4d3c1..082e878 100755
--- a/guadec/ipnlistener.php
+++ b/guadec/ipnlistener.php
@@ -315,15 +315,17 @@ class IpnListener {
$table_name = $wpdb->prefix .'guadec2014_registrations';
// error_log($table_name); // check if the wpdb is accessible
- $up = $wpdb->update(
- $table_name,
- array(
- 'payment' => 'Completed'
- ),
- array(
- 'email' => $reg_email
- )
- );
+ $up = $wpdb->get_results('SELECT * FROM wp_guadec2014_registrations', ARRAY_A);
+
+ // $up = $wpdb->update(
+ // $table_name,
+ // array(
+ // 'payment' => 'Completed'
+ // ),
+ // array(
+ // 'email' => $reg_email
+ // )
+ // );
if(!($up)){
throw new Exception("Database Error: Not Updated");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]