From ea578859df0ca7589895faf2e4df3a8ee01dad61 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 09 Jul 2012 18:26:43 +0000
Subject: [PATCH] Poprawka błędu w klasie DOMHelper: zamiast lastChild winno być firstChild

---
 class/DOMHelper.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/class/DOMHelper.php b/class/DOMHelper.php
index 7d1ec07..3d840b2 100644
--- a/class/DOMHelper.php
+++ b/class/DOMHelper.php
@@ -1,7 +1,7 @@
 <?php
 class DOMHelper {
 	static function ltrim($node) {
-		while(($node->firstChild instanceof DOMElement) && $node->firstChild->tagName == 'br' && $node->lastChild->getAttribute('auto')=='1') {
+		while(($node->firstChild instanceof DOMElement) && $node->firstChild->tagName == 'br' && $node->firstChild->getAttribute('auto')=='1') {
 			$node->removeChild($node->firstChild);
 		}
 		

--
Gitblit v1.9.1