Changeset 282 for dev/common/includes/class.parser.php
- Timestamp:
- 12/11/07 19:28:13 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.parser.php
r277 r282 387 387 if ($dmgtaken) 388 388 { 389 $endpos = strpos($this->killmail_, "Dropped items:") - $destroyedpos - 16; 389 $pos = strpos($this->killmail_, "Dropped items:"); 390 if ($pos === false) 391 { 392 $pos = strlen($this->killmail_); 393 } 394 $endpos = $pos - $destroyedpos - 16; 390 395 } 391 396 … … 404 409 if ($startpos) 405 410 { 406 $endpos = strlen($this->killmail_) - $startpos + 1 6;407 408 $dropped = explode("\n", trim(substr($this->killmail_, $startpos + 1 6, $endpos)));411 $endpos = strlen($this->killmail_) - $startpos + 14; 412 413 $dropped = explode("\n", trim(substr($this->killmail_, $startpos + 14, $endpos))); 409 414 #var_dump($dropped); exit; 410 415