rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 6af006c08783ab05617fa4c4c8d4dc2dce62bc28
parent 07b28144ee0339b25fe7dae0af6707acaca085ed
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 17:18:03 +0100

try to fix the endless loop one more time

Diffstat:
Mcore/backend/blog/posts.php | 10++++------
Mthemes/jumbotron/index.php | 1+
2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -21,7 +21,7 @@ $resultat->close(); } - read(); + #read(); function read(){ global $id, $connection, $read, $post_id_clean; @@ -52,11 +52,9 @@ $post_date = "Database error!"; $post_categrory = "Database error!"; } - if ($id < $post_id_clean){ - read(); - }else{ - exit; - } + #if ($id < $post_id_clean+1){ + # read(); + #} } diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -89,6 +89,7 @@ echo "<a href='index.php?id=$id' rel='bookmark'> $post_title </a>"; $x = $x+1; $id = $id+1; + read(); } }else{ echo "<a href='index.php?id=$id' rel='bookmark'> $post_title </a>";