If you can't create a block - try this.
Brought to you by:
joestewart,
nhruby
Not sure if this is needed in all cases or the best solution, but I've had no luck creating blocks unless I change the if statement to look for {BLOCK_ID}.
diff -u phpslash-ft/public_html/Block.class Block.class
--- phpslash-ft/public_html/Block.class Mon Aug 28 09:49:53 2000
+++ Block.class Thu Sep 7 15:18:48 2000
@@ -119,7 +119,7 @@
}
- if ($block_array["block_id"]) {
+ if ($block_array["block_id"] != "{BLOCK_ID}") {
echo "<B>WE'RE IN THE UPDATER!!!</B><BR>\n";
I guess checking for blank block_id and {BLOCK_ID} would be more correct.
diff -u phpslash-ft/public_html/Block.class Block.class
--- phpslash-ft/public_html/Block.class Mon Aug 28 09:49:53 2000
+++ Block.class Fri Sep 8 11:57:01 2000
@@ -119,8 +119,8 @@
}
- if ($block_array["block_id"]) {
-
+ if (($block_array["block_id"] == "") OR ($block_array["block_id"] != "{BLOCK_ID}")) {
+
echo "<B>WE'RE IN THE UPDATER!!!</B><BR>\n";
$query = "UPDATE psl_block
patched in, will be in the cvs tonight.