From 9318b84ca9b21c349a84d63a8d54fb93a5fcbde6 Mon Sep 17 00:00:00 2001 From: Artefact2 Date: Sat, 31 Oct 2015 20:46:47 +0100 Subject: [PATCH] Revert "Also accept non-standard DNA syntax in top_kills." This reverts commit f140ec0caa7ebda4bafb14f48a1f66bacf33c107. --- src/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.php b/src/main.php index 621aaf6..509d86e 100644 --- a/src/main.php +++ b/src/main.php @@ -1,6 +1,6 @@ + * Copyright (C) 2012, 2013, 2014 Romain "Artefact2" Dalmaso * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -206,7 +206,7 @@ $ol = $section->appendCreate('ol'); foreach($topkills['fotw'] as $f) { - $shipid = (int)explode(';', explode(':', $f['dna'], 2)[0], 2)[0]; + list($shipid, ) = explode(':', $f['dna'], 2); $shiptypename = \Osmium\Fit\get_typename($shipid); $fname = $shiptypename.' fitting'.($f['tags'] ? ': '.implode(', ', $f['tags']) : '');