Changeset 2646428
- Timestamp:
- 12/19/2021 03:47:02 PM (3 years ago)
- Location:
- qr-scanner-redirect/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
qr-scanner-redirect/trunk/index.php
r2622277 r2646428 4 4 * Plugin URI: https://github.com/aigenseer/qr-scanner-redirect 5 5 * Description: Wordpress web qr-scanner with redirect function 6 * Version: 1.2. 26 * Version: 1.2.3 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 -
qr-scanner-redirect/trunk/readme.txt
r2622277 r2646428 5 5 Tested up to: 5.8.1 6 6 Requires PHP: 5.2.4 7 Stable tag: 1.2. 17 Stable tag: 1.2.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 50 50 == Changelog == 51 51 52 = 1.2.3 = 53 * cd 54 52 55 = 1.2.2 = 53 56 * Fix display metabox -
qr-scanner-redirect/trunk/sql/pluginsettings.class.php
r2604068 r2646428 49 49 * @return boolean 50 50 */ 51 public function is($name='') 52 { 53 $str = "SELECT COUNT(`id`) as count FROM `%s` WHERE `name` like '%s'"; 54 $sql = sprintf($str, $this->tablename, $name); 51 52 /** 53 * [return the boolean if the entry value exist] 54 * @param string $name [name of value] 55 * @param $group 56 * @return bool 57 */ 58 public function is($name='', $group) 59 { 60 $str = "SELECT COUNT(`id`) as count FROM `%s` WHERE `name` like '%s' AND `group` like '%s'"; 61 $sql = sprintf($str, $this->tablename, $name, $group); 55 62 return intval($this->wpdb->get_var($sql))>0; 56 63 } … … 67 74 $group = $this->DEFAULT_GROUP; 68 75 } 69 if(!$this->is($name )){76 if(!$this->is($name, $group)){ 70 77 $str = "INSERT INTO `%s` (`name`, `data`, `group`) values('%s', '%s', '%s') "; 71 78 $sql = sprintf($str, $this->tablename, $name, $data, $group); … … 225 232 $_values = $this->mergeWithDefaultValues($post, $group, false); 226 233 foreach ($_values as $key => $value) { 227 if(!$value->change && $this->is($key )){234 if(!$value->change && $this->is($key, $group)){ 228 235 switch ($value->type) { 229 236 case 'boolean':
Note: See TracChangeset
for help on using the changeset viewer.