@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | // Search array to get correct position |
587 | 587 | list($search_key, $search_value) = @each($key); |
588 | 588 | |
589 | - $key = NULL; |
|
589 | + $key = null; |
|
590 | 590 | foreach ($this->_tpldata[$blockname] as $i => $val_ary) |
591 | 591 | { |
592 | 592 | if ($val_ary[$search_key] === $search_value) |
@@ -597,7 +597,7 @@ discard block |
||
597 | 597 | } |
598 | 598 | |
599 | 599 | // key/value pair not found |
600 | - if ($key === NULL) |
|
600 | + if ($key === null) |
|
601 | 601 | { |
602 | 602 | return false; |
603 | 603 | } |
@@ -89,18 +89,18 @@ discard block |
||
89 | 89 | case 0: |
90 | 90 | $fleet['event_time'] = $fleet['fleet_start_time']; |
91 | 91 | $is_this_planet = ( |
92 | - ($planetrow['galaxy'] == $fleet['fleet_end_galaxy']) AND |
|
93 | - ($planetrow['system'] == $fleet['fleet_end_system']) AND |
|
94 | - ($planetrow['planet'] == $fleet['fleet_end_planet']) AND |
|
92 | + ($planetrow['galaxy'] == $fleet['fleet_end_galaxy']) and |
|
93 | + ($planetrow['system'] == $fleet['fleet_end_system']) and |
|
94 | + ($planetrow['planet'] == $fleet['fleet_end_planet']) and |
|
95 | 95 | ($planetrow['planet_type'] == $planet_end_type)); |
96 | 96 | break; |
97 | 97 | |
98 | 98 | case 1: |
99 | 99 | $fleet['event_time'] = $fleet['fleet_end_stay']; |
100 | 100 | $is_this_planet = ( |
101 | - ($planetrow['galaxy'] == $fleet['fleet_end_galaxy']) AND |
|
102 | - ($planetrow['system'] == $fleet['fleet_end_system']) AND |
|
103 | - ($planetrow['planet'] == $fleet['fleet_end_planet']) AND |
|
101 | + ($planetrow['galaxy'] == $fleet['fleet_end_galaxy']) and |
|
102 | + ($planetrow['system'] == $fleet['fleet_end_system']) and |
|
103 | + ($planetrow['planet'] == $fleet['fleet_end_planet']) and |
|
104 | 104 | ($planetrow['planet_type'] == $planet_end_type)); |
105 | 105 | break; |
106 | 106 | |
@@ -108,9 +108,9 @@ discard block |
||
108 | 108 | case 3: |
109 | 109 | $fleet['event_time'] = $fleet['fleet_end_time']; |
110 | 110 | $is_this_planet = ( |
111 | - ($planetrow['galaxy'] == $fleet['fleet_start_galaxy']) AND |
|
112 | - ($planetrow['system'] == $fleet['fleet_start_system']) AND |
|
113 | - ($planetrow['planet'] == $fleet['fleet_start_planet']) AND |
|
111 | + ($planetrow['galaxy'] == $fleet['fleet_start_galaxy']) and |
|
112 | + ($planetrow['system'] == $fleet['fleet_start_system']) and |
|
113 | + ($planetrow['planet'] == $fleet['fleet_start_planet']) and |
|
114 | 114 | ($planetrow['planet_type'] == $fleet['fleet_start_type'])); |
115 | 115 | break; |
116 | 116 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | } |
59 | 59 | else |
60 | 60 | { |
61 | - if (($destination_planet["debris_metal"] > $RecyclerCapacity / 2) AND |
|
61 | + if (($destination_planet["debris_metal"] > $RecyclerCapacity / 2) and |
|
62 | 62 | ($destination_planet["debris_crystal"] > $RecyclerCapacity / 2)) |
63 | 63 | { |
64 | 64 | $RecycledGoods["metal"] = $RecyclerCapacity / 2; |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | // header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); |
6 | 6 | // @header("{$serverProtocol} 200 OK"); |
7 | -echo "File {$redirectFrom} not found on server. Contact administration if you think that this is error"; |
|
7 | +echo "file {$redirectFrom} not found on server. Contact administration if you think that this is error"; |
|
8 | 8 | die(); |
9 | 9 | ?> */ |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $this->Field = isset($mySqlDescription['Field']) ? $mySqlDescription['Field'] : null; |
30 | 30 | $this->Type = isset($mySqlDescription['Type']) ? $mySqlDescription['Type'] : null; |
31 | 31 | $this->Collation = isset($mySqlDescription['Collation']) ? $mySqlDescription['Collation'] : null; |
32 | - $this->Null = isset($mySqlDescription['Null']) ? $mySqlDescription['Null'] : null; |
|
32 | + $this->null = isset($mySqlDescription['Null']) ? $mySqlDescription['Null'] : null; |
|
33 | 33 | $this->Key = isset($mySqlDescription['Key']) ? $mySqlDescription['Key'] : null; |
34 | 34 | $this->Default = isset($mySqlDescription['Default']) ? $mySqlDescription['Default'] : null; |
35 | 35 | $this->Extra = isset($mySqlDescription['Extra']) ? $mySqlDescription['Extra'] : null; |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | $result = array(); |
82 | 82 | $transaction_id = SN::db_transaction_check(false) ? SN::$transaction_id : SN::$transaction_id++; |
83 | - $result[] = "tID {$transaction_id}"; |
|
83 | + $result[] = "tid {$transaction_id}"; |
|
84 | 84 | foreach($backtrace as $a_trace) { |
85 | 85 | if(in_array($a_trace['function'], $exclude_functions)) { |
86 | 86 | continue; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $this->Collation = isset($indexField['Collation']) ? $indexField['Collation'] : null; |
28 | 28 | $this->Cardinality = isset($indexField['Cardinality']) ? $indexField['Cardinality'] : null; |
29 | 29 | $this->Sub_part = isset($indexField['Sub_part']) ? $indexField['Sub_part'] : null; |
30 | - $this->Null = isset($indexField['Null']) ? $indexField['Null'] : null; |
|
30 | + $this->null = isset($indexField['Null']) ? $indexField['Null'] : null; |
|
31 | 31 | $this->Expression = isset($indexField['Expression']) ? $indexField['Expression'] : null; |
32 | 32 | |
33 | 33 | return $this; |
@@ -153,7 +153,7 @@ |
||
153 | 153 | |
154 | 154 | |
155 | 155 | // If this field is not null and default value is not set - then this field is mandatory |
156 | - if ($fieldDescription->Null === 'NO' && $fieldDescription->Default === null && !$nonMandatory) { |
|
156 | + if ($fieldDescription->null === 'NO' && $fieldDescription->Default === null && !$nonMandatory) { |
|
157 | 157 | $this->mandatory = true; |
158 | 158 | } |
159 | 159 |
@@ -586,10 +586,10 @@ |
||
586 | 586 | protected function sn_chat_advanced_get_chat_player_record($player_id, $fields = '*', $return_data = true) { |
587 | 587 | $result = false; |
588 | 588 | if($player_id) { |
589 | - if(!($result = doquery("SELECT {$fields} FROM {{chat_player}} WHERE `chat_player_player_id` = {$player_id} LIMIT 1", true))) { |
|
589 | + if(!($result = doquery("select {$fields} FROM {{chat_player}} WHERE `chat_player_player_id` = {$player_id} LIMIT 1", true))) { |
|
590 | 590 | doquery("INSERT INTO {{chat_player}} SET `chat_player_player_id` = {$player_id}"); |
591 | 591 | if($return_data) { |
592 | - $result = doquery("SELECT {$fields} FROM {{chat_player}} WHERE `chat_player_player_id` = {$player_id} LIMIT 1", true); |
|
592 | + $result = doquery("select {$fields} FROM {{chat_player}} WHERE `chat_player_player_id` = {$player_id} LIMIT 1", true); |
|
593 | 593 | } |
594 | 594 | } |
595 | 595 | } |