Fix WPCRM saveOrUpdateUserToTable
This commit is contained in:
parent
5190ab634d
commit
6ea06b7620
1 changed files with 1 additions and 1 deletions
|
|
@ -536,7 +536,7 @@ class WPCrm
|
|||
*/
|
||||
private static function saveOrUpdateUserToTable()
|
||||
{
|
||||
if (self::getUserFromTable(self::$user->hashcode)) {
|
||||
if (is_string(self::$user->hashcode) and self::getUserFromTable(self::$user->hashcode)) {
|
||||
self::query(
|
||||
'UPDATE `ldc_wp_customers` SET `email` = %s, `uuid` = %s WHERE `hashcode` = %s',
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue