Subversion Repositories SmartDukaan

Rev

Rev 14855 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14855 Rev 15085
Line 82... Line 82...
82
				$sql = $rule['NotificationRule']['sql'];
82
				$sql = $rule['NotificationRule']['sql'];
83
				if(strpos($sql, '{uid}')!==false){
83
				if(strpos($sql, '{uid}')!==false){
84
					$sql = str_replace('{uid}', $user_id, $sql);
84
					$sql = str_replace('{uid}', $user_id, $sql);
85
				}
85
				}
86
				$this->log($sql,'webnotifications');
86
				$this->log($sql,'webnotifications');
87
				$valid = $this->query($sql,'webnotifications');
87
				$valid = $this->query($sql);
88
				if(!empty($valid)){
88
				if(!empty($valid)){
89
					$activeNotifications[] = $rule;
89
					$activeNotifications[] = $rule;
90
				}
90
				}
91
			}
91
			}
92
		}
92
		}