Menu

#6 If you can't create a block - try this.

NEXT RELEASE
closed-fixed
admin (43)
5
2000-09-11
2000-09-07
Joe Stewart
No

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

Discussion

  • nathan hruby

    nathan hruby - 2000-09-08
    • assigned_to: nobody --> ajayrockrock
     
  • Joe Stewart

    Joe Stewart - 2000-09-08

    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

     
  • Ajay Sharma

    Ajay Sharma - 2000-09-11

    patched in, will be in the cvs tonight.

     
  • Ajay Sharma

    Ajay Sharma - 2000-09-11
    • status: open --> closed-fixed
     

Log in to post a comment.