From fb87e02c9868427de4a97427f9190de4d2d93163 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 12 Aug 2012 12:26:10 +0000
Subject: [PATCH] Dodanie pełnej obsługi obrazków, zgodnie z ostatnimi zmianami w BotAPI.

---
 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