Skip to content
This repository
Browse code

cookie checking on eduwork

  • Loading branch information...
commit 23fe7e83a7ebcceb10f3d1f3686c8d1e30c3b808 1 parent 2355acd
arunna authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 lumonata-functions/user.php
12 lumonata-functions/user.php
@@ -2030,11 +2030,11 @@ function get_eduwork($eduwork,$user_id){
2030 2030 $html.="<br /><label>".$val['from_period']." to ".$val['to_period']."</label><br />
2031 2031 <span style='font-size:10px;'>".$val['jobdes']."</span>
2032 2032 </div>";
2033   - if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id']))
  2033 + if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id'])
2034 2034 $html.="<div class=\"action\"><a href=\"javascript:;\" id=\"work_edit_".$i."\">Edit</a> | <a href=\"javascript:;\" rel=\"delete_work_".$i."\">Delete</a></div>";
2035 2035 $html.="</div>";
2036 2036
2037   - if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id'])){
  2037 + if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id']){
2038 2038 $html.="<script type='text/javascript'>
2039 2039 $(function(){
2040 2040 $('#the_work_".$i."').click(function(){
@@ -2088,11 +2088,11 @@ function get_eduwork($eduwork,$user_id){
2088 2088
2089 2089 $html.="</label></div>";
2090 2090
2091   - if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id']))
  2091 + if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id'] )
2092 2092 $html.="<div class=\"action\"><a href=\"javascript:;\">Edit</a> | <a href=\"javascript:;\" rel=\"delete_college_".$i."\">Delete</a></div>";
2093 2093 $html.="</div>";
2094 2094
2095   - if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id'])){
  2095 + if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id']){
2096 2096 $html.="<script type='text/javascript'>
2097 2097 $(function(){
2098 2098 $('#college_".$i."').click(function(){
@@ -2115,11 +2115,11 @@ function get_eduwork($eduwork,$user_id){
2115 2115 <strong>".$key."</strong><br />
2116 2116 <label>".$val."</label>
2117 2117 </div>";
2118   - if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id']))
  2118 + if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id'])
2119 2119 $html.="<div class=\"action\"><a href=\"javascript:;\">Edit</a> | <a href=\"javascript:;\" rel=\"delete_school_".$i."\">Delete</a></div>";
2120 2120 $html.="</div>";
2121 2121
2122   - if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id'])){
  2122 + if( isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id']){
2123 2123 $html.="<script type='text/javascript'>
2124 2124 $(function(){
2125 2125 $('#the_school_".$i."').click(function(){

0 comments on commit 23fe7e8

Please sign in to comment.
Something went wrong with that request. Please try again.