Skip to content

Instantly share code, notes, and snippets.

@kevburnsjr
Created January 22, 2011 21:37
Show Gist options
  • Save kevburnsjr/791507 to your computer and use it in GitHub Desktop.
Save kevburnsjr/791507 to your computer and use it in GitHub Desktop.
Modifying hack to be compatible with fucking pass by reference bullshit
<?php
if ($send_order_emails && !$updated_order->confirmation_sent) {
orders_send_order_emails($shipping, $updated_order, $opsname);
- orders_update(array('confirmation_sent'=>1), array('id'=>$orderid));
+ $fucking_data = array('confirmation_sent'=>1);
+ $fucking_where_clause = array('id'=>$orderid);
+ orders_update($fucking_data, $fucking_where_clause);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment