Changeset 5898
- Timestamp:
- 08/17/2007 11:32:49 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r5888 r5898 1024 1024 if(isset($content_struct["mt_allow_pings"])) { 1025 1025 if(!is_numeric($content_struct["mt_allow_pings"])) { 1026 switch($content ["mt_allow_pings"]) {1026 switch($content_struct['mt_allow_pings']) { 1027 1027 case "closed": 1028 1028 $ping_status = "closed"; … … 1234 1234 if(isset($content_struct["mt_allow_pings"])) { 1235 1235 if(!is_numeric($content_struct["mt_allow_pings"])) { 1236 switch($content ["mt_allow_pings"]) {1236 switch($content_struct["mt_allow_pings"]) { 1237 1237 case "closed": 1238 1238 $ping_status = "closed"; … … 1258 1258 break; 1259 1259 } 1260 }1261 }1262 1263 // Only set ping_status if it was provided.1264 if(isset($content_struct["mt_allow_pings"])) {1265 switch((int) $content_struct["mt_allow_pings"]) {1266 case 0:1267 $ping_status = "closed";1268 break;1269 case 1:1270 $ping_status = "open";1271 break;1272 1260 } 1273 1261 }
Note: See TracChangeset
for help on using the changeset viewer.