From bb8a53ad08f8cbf73e61955242e70dd0ab419d65 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 2 Jul 2014 14:59:02 +0200 Subject: fix brain fart --- it_text.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_text.class b/it_text.class index 4a1d32b..e45b7d4 100644 --- a/it_text.class +++ b/it_text.class @@ -86,7 +86,7 @@ function it_text($p = array()) $this->initlang($p['forcelanguage'], "setting language from programmer override"); # Create empty array to activate sampling; dont kill any existing one - if (!it::is_live() || rand(1, $_SERVER['POST'] ? 10 : 100) == 1) + if (!it::is_live() || rand(1, $_POST ? 10 : 100) == 1) $GLOBALS['it_text_sampling'] = (array)$GLOBALS['it_text_sampling']; # Make this object available under $GLOBALS['it_text'], or add my texts to $GLOBALS['it_text'] if it exists -- cgit v1.2.3